mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
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;
|
||
|
}
|