Created
June 16, 2024 00:05
-
-
Save Tombert/4a0f5e5591e50fc9267a41cdb65b503b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Launch Blade of Agony"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/867fe984b5299cf855be38ed9feed70a95a22eaf"; | |
}; | |
outputs = { self, nixpkgs, ... }: let | |
pkgs = import nixpkgs { system = "x86_64-linux"; }; | |
makeGzWrapper = iwad: pkgs.writeShellScriptBin "gz-wrapper-${builtins.replaceStrings ["/" ":" "."] ["_" "_" "_"] iwad}" '' | |
exec ${pkgs.gzdoom}/bin/gzdoom -iwad ${iwad} | |
''; | |
gzdoomApp = iwad: { | |
type = "app"; | |
program = "${makeGzWrapper iwad}/bin/gz-wrapper-${builtins.replaceStrings ["/" ":" "."] ["_" "_" "_"] iwad}"; | |
}; | |
in { | |
defaultPackage.x86_64-linux = makeGzWrapper "boa.ipk3"; | |
apps.x86_64-linux = { | |
boa = gzdoomApp "boa.ipk3"; | |
}; | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
unset LD_PRELOAD | |
export STEAM_RUNTIME=1 | |
unset LD_LIBRARY_PATH | |
nix run .#boa | |
# unsets are to make it launchable with Steam so it can be used inside the gamescope big picture thing. | |
# add this script as a non-steam game. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you have the Blade of agony ipk3 file in the same directory.