buildEnv: remove redundant pname-version-name assertion
Delegate such a check to stdenv.mkDerivation.
This commit is contained in:
committed by
Philip Taron
parent
e881e15c00
commit
0efccf1dd9
@@ -121,10 +121,6 @@ lib.makeOverridable (
|
||||
(lib.remove null)
|
||||
];
|
||||
in
|
||||
assert
|
||||
args ? name
|
||||
|| (args ? pname && args ? version)
|
||||
|| throw "buildEnv: expects arguments 'pname' and 'version', or 'name'";
|
||||
compatArgs
|
||||
// derivationArgs
|
||||
// {
|
||||
|
||||
@@ -34,8 +34,6 @@ let
|
||||
}).name;
|
||||
expected = "test-env-1.0";
|
||||
};
|
||||
|
||||
testMissingNameThrows = testingThrow (buildEnv { paths = [ ]; }).drvPath;
|
||||
};
|
||||
|
||||
tests-passthru-paths = {
|
||||
|
||||
Reference in New Issue
Block a user