diff options
author | Patrick Hilhorst <git@hilhorst.be> | 2018-10-30 14:27:28 +0100 |
---|---|---|
committer | Patrick Hilhorst <git@hilhorst.be> | 2018-10-30 14:33:14 +0100 |
commit | 1f7fc09176dc9b0260b8e2778f1e6c3139eae6a9 (patch) | |
tree | da68a00980b9129fd155118274003c476ef3681d /pkgs/stdenv/generic/make-derivation.nix | |
parent | c7e026bec483582bf2b8ac624519555f9476751c (diff) |
make-derivation: use a more descriptive assert message
As suggested by @Profpatsch
Diffstat (limited to 'pkgs/stdenv/generic/make-derivation.nix')
-rw-r--r-- | pkgs/stdenv/generic/make-derivation.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index 2ff7db947fe0..cb3731da1934 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -86,7 +86,8 @@ rec { assert lib.assertMsg (lib.lists.all (name: builtins.hasAttr name attrs) ["name" "pname" "version"] -> lib.strings.hasSuffix "${attrs.pname}-${attrs.version}" attrs.name) - "mkDerivation: `name` must be consistent with `pname-version`"; + ("mkDerivation: `name` (\"${attrs.name}\") must be consistent " + + "with `pname-version` \"${attrs.pname}-${attrs.version}\""); let # TODO(@oxij, @Ericson2314): This is here to keep the old semantics, remove when |