1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00
nix/tests/functional/impure-env.nix

16 lines
276 B
Nix

{ var, value }:
with import ./config.nix;
mkDerivation {
name = "test";
buildCommand = ''
echo ${var} = "''$${var}"
echo -n "''$${var}" > "$out"
'';
impureEnvVars = [ var ];
outputHashAlgo = "sha256";
outputHash = builtins.hashString "sha256" value;
}