mirror of
https://github.com/NixOS/nix.git
synced 2024-11-28 09:42:29 +00:00
67d231c046
This reverts commit619eeb658a
, reversing changes made to1af94bf471
.
17 lines
317 B
Nix
17 lines
317 B
Nix
{ var, value }:
|
|
|
|
with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix";
|
|
|
|
mkDerivation {
|
|
name = "test";
|
|
buildCommand = ''
|
|
echo ${var} = "''$${var}"
|
|
echo -n "''$${var}" > "$out"
|
|
'';
|
|
|
|
impureEnvVars = [ var ];
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHash = builtins.hashString "sha256" value;
|
|
}
|