Merge pull request #194204 from herberteuler/fix/sil-q-user-dir

sil-q: use .sil-q to avoid clashing with sil's data
This commit is contained in:
Mario Rodas 2022-10-28 07:54:54 -05:00 committed by GitHub
commit 82051748eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ in stdenv.mkDerivation rec {
mkdir -p $out/bin
cp sil $out/bin/sil-q
wrapProgram $out/bin/sil-q \
--run "export ANGBAND_PATH=\$HOME/.sil" \
--run "export ANGBAND_PATH=\$HOME/.sil-q" \
--run "${setup} ${src}/lib"
runHook postInstall
@ -50,7 +50,7 @@ in stdenv.mkDerivation rec {
passthru.tests = {
saveDirCreation = pkgs.runCommand "save-dir-creation" {} ''
HOME=$(pwd) ${lib.getExe pkgs.sil-q} --help
test -d .sil && touch $out
test -d .sil-q && touch $out
'';
};