1 { lib, runCommand, emptyFile, nix-diff }:
5 drvA = builtins.unsafeDiscardOutputDependency a.drvPath or (throw "testEqualDerivation second argument must be a package");
6 drvB = builtins.unsafeDiscardOutputDependency b.drvPath or (throw "testEqualDerivation third argument must be a package");
9 then "testEqualDerivation-${a.name}"
10 else "testEqualDerivation";
17 inherit assertion drvA drvB;
18 nativeBuildInputs = [ nix-diff ];
21 echo "However, the derivations differ:"
23 echo nix-diff $drvA $drvB