forked from lix-project/lix
jade
d92712673b
This is a shameless layering violation in favour of UX. It falls back
trivially to "unknown", so it's purely a UX feature.
Diagnostic sample:
```
error: hash mismatch in fixed-output derivation '/nix/store/sjfw324j4533lwnpmr5z4icpb85r63ai-x1.drv':
likely URL: https://meow.puppy.forge/puppy.tar.gz
specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
got: sha256-a1Qvp3FOOkWpL9kFHgugU1ok5UtRPSu+NwCZKbbaEro=
```
Change-Id: I873eedcf7984ab23f57a6754be00232b5cb5b02c
42 lines
1,005 B
Nix
42 lines
1,005 B
Nix
with import ./config.nix;
|
|
rec {
|
|
x1 = mkDerivation {
|
|
name = "x1";
|
|
builder = builtins.toFile "builder.sh"
|
|
''
|
|
echo $name > $out
|
|
'';
|
|
url = "https://meow.puppy.forge/puppy.tar.gz";
|
|
outputHashMode = "recursive";
|
|
outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
};
|
|
x2 = mkDerivation {
|
|
name = "x2";
|
|
builder = builtins.toFile "builder.sh"
|
|
''
|
|
echo $name > $out
|
|
'';
|
|
urls = "https://kitty.forge/cat.tar.gz";
|
|
outputHashMode = "recursive";
|
|
outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
};
|
|
x3 = mkDerivation {
|
|
name = "x3";
|
|
builder = builtins.toFile "builder.sh"
|
|
''
|
|
echo $name > $out
|
|
'';
|
|
outputHashMode = "recursive";
|
|
outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
};
|
|
x4 = mkDerivation {
|
|
name = "x4";
|
|
inherit x2 x3;
|
|
builder = builtins.toFile "builder.sh"
|
|
''
|
|
echo $x2 $x3
|
|
exit 1
|
|
'';
|
|
};
|
|
}
|