mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
f29e7867a9
This reverts commitaeffdeffc8
, reversing changes made to723fdeb4f1
.
17 lines
276 B
Nix
17 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;
|
|
}
|