Loading pkgs/by-name/s7/s7/package.nix +8 −7 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ gsl, man, pkg-config, writableTmpDirAsHomeHook, unstableGitUpdater, writeScript, Loading Loading @@ -183,6 +184,7 @@ stdenv.mkDerivation (finalAttrs: { nativeInstallCheckInputs = [ man pkg-config writableTmpDirAsHomeHook ]; installCheckInputs = [ Loading @@ -190,19 +192,18 @@ stdenv.mkDerivation (finalAttrs: { ]; /* XXX: The upstream assumes that `$HOME` is `/home/$USER`, and the source files lie in `$HOME/cl` . The script presented here uses a fake `$USER` and a symbolic linked `$HOME/cl` , which make the test suite work but do not meet the conditions completely. The test suite assumes that "there are two subdirectories of the home directory referred to: cl and test", where `cl` is "the s7 source directory" and `test` is "a safe place to write temp files". */ installCheckPhase = '' runHook preInstallCheck ln -sr . $HOME/cl mkdir $HOME/test $CC s7.c -c -o s7.o $CC ffitest.c s7.o -o ffitest mv ffitest $dst_bin mkdir -p nix-build/home ln -sr . nix-build/home/cl ${lib.optionalString withArb '' substituteInPlace s7test.scm \ Loading @@ -211,7 +212,7 @@ stdenv.mkDerivation (finalAttrs: { cp $out/lib/libarb_s7.so . ''} USER=nix-s7-builder PATH="$dst_bin:$PATH" HOME=$PWD/nix-build/home \ PATH="$dst_bin:$PATH" \ s7-repl s7test.scm rm $dst_bin/ffitest Loading Loading
pkgs/by-name/s7/s7/package.nix +8 −7 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ gsl, man, pkg-config, writableTmpDirAsHomeHook, unstableGitUpdater, writeScript, Loading Loading @@ -183,6 +184,7 @@ stdenv.mkDerivation (finalAttrs: { nativeInstallCheckInputs = [ man pkg-config writableTmpDirAsHomeHook ]; installCheckInputs = [ Loading @@ -190,19 +192,18 @@ stdenv.mkDerivation (finalAttrs: { ]; /* XXX: The upstream assumes that `$HOME` is `/home/$USER`, and the source files lie in `$HOME/cl` . The script presented here uses a fake `$USER` and a symbolic linked `$HOME/cl` , which make the test suite work but do not meet the conditions completely. The test suite assumes that "there are two subdirectories of the home directory referred to: cl and test", where `cl` is "the s7 source directory" and `test` is "a safe place to write temp files". */ installCheckPhase = '' runHook preInstallCheck ln -sr . $HOME/cl mkdir $HOME/test $CC s7.c -c -o s7.o $CC ffitest.c s7.o -o ffitest mv ffitest $dst_bin mkdir -p nix-build/home ln -sr . nix-build/home/cl ${lib.optionalString withArb '' substituteInPlace s7test.scm \ Loading @@ -211,7 +212,7 @@ stdenv.mkDerivation (finalAttrs: { cp $out/lib/libarb_s7.so . ''} USER=nix-s7-builder PATH="$dst_bin:$PATH" HOME=$PWD/nix-build/home \ PATH="$dst_bin:$PATH" \ s7-repl s7test.scm rm $dst_bin/ffitest Loading