some stuff
This commit is contained in:
parent
cd8343c0c4
commit
d2fd9fda8a
26 changed files with 377 additions and 83 deletions
|
@ -1,3 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
jdnbtexplorer = pkgs.qt6Packages.callPackage ./jdnbtexplorer {};
|
||||
gamesand = pkgs.callPackage ./gamesand {};
|
||||
}
|
||||
|
|
24
pkgs/gamesand/default.nix
Normal file
24
pkgs/gamesand/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
steamPackages,
|
||||
symlinkJoin,
|
||||
}:
|
||||
symlinkJoin {
|
||||
name = "gamesand";
|
||||
paths = [
|
||||
((steamPackages.steam-fhsenv-without-steam.override
|
||||
{
|
||||
extraBwrapArgs = [
|
||||
"--ro-bind ./files /game/files"
|
||||
"--bind ./appdata /home/$USER"
|
||||
"--chdir /game"
|
||||
"--ro-bind ./start.sh /game/start.sh"
|
||||
"--cap-add ALL"
|
||||
];
|
||||
})
|
||||
.run)
|
||||
];
|
||||
postBuild = ''
|
||||
mv $out/bin/steam-run $out/bin/gamesand
|
||||
sed -i 's/ignored=(\/nix \/dev \/proc \/etc )/ignored=(\/nix \/dev \/proc \/etc \/home )/' $out/bin/gamesand
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue