buildEnv: remove redundant pname-version-name assertion

Delegate such a check to stdenv.mkDerivation.
This commit is contained in:
Yueh-Shun Li
2026-03-28 23:39:37 +08:00
committed by Philip Taron
parent e881e15c00
commit 0efccf1dd9
2 changed files with 0 additions and 6 deletions
-4
View File
@@ -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
// {
-2
View File
@@ -34,8 +34,6 @@ let
}).name;
expected = "test-env-1.0";
};
testMissingNameThrows = testingThrow (buildEnv { paths = [ ]; }).drvPath;
};
tests-passthru-paths = {