Loading pkgs/by-name/po/postgresqlTestHook/test.nix +3 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ stdenv.mkDerivation { nativeCheckInputs = [ postgresql ]; dontUnpack = true; doCheck = true; passAsFile = [ "sql" ]; sql = '' CREATE TABLE hello ( message text Loading @@ -23,6 +22,8 @@ stdenv.mkDerivation { ''; checkPhase = '' runHook preCheck sqlPath=$TMPDIR/test.sql printf "%s" "$sql" > $sqlPath psql <$sqlPath | grep 'it worked' TEST_RAN=1 runHook postCheck Loading @@ -31,4 +32,5 @@ stdenv.mkDerivation { [[ $TEST_RAN == 1 && $TEST_POST_HOOK_RAN == 1 ]] touch $out ''; __structuredAttrs = true; } Loading
pkgs/by-name/po/postgresqlTestHook/test.nix +3 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ stdenv.mkDerivation { nativeCheckInputs = [ postgresql ]; dontUnpack = true; doCheck = true; passAsFile = [ "sql" ]; sql = '' CREATE TABLE hello ( message text Loading @@ -23,6 +22,8 @@ stdenv.mkDerivation { ''; checkPhase = '' runHook preCheck sqlPath=$TMPDIR/test.sql printf "%s" "$sql" > $sqlPath psql <$sqlPath | grep 'it worked' TEST_RAN=1 runHook postCheck Loading @@ -31,4 +32,5 @@ stdenv.mkDerivation { [[ $TEST_RAN == 1 && $TEST_POST_HOOK_RAN == 1 ]] touch $out ''; __structuredAttrs = true; }