treewide: use appendToName where appropriate
Using appendToName preserves the version at the end of the name.
commita0f4d19925705945b2beb393239f1a9f72b5035d
authorMatthew Bauer <mjbauer95@gmail.com>
dateFri 25 May 2018, 04:21 (9 years ago)
parent73b1106
pkgs/applications/networking/cluster/terraform/default.nix+3−3
@@ -60,8 +60,8 @@ let
6060 # of plugins, which might be counterintuitive if someone just wants a vanilla Terraform.
6161 if actualPlugins == []
6262 then terraform.overrideAttrs (orig: { passthru = orig.passthru // passthru; })
63− else stdenv.mkDerivation {
64− name = "${terraform.name}-with-plugins";
63+ else lib.appendToName "with-plugins "(stdenv.mkDerivation {
64+ inherit (terraform) name;
6565 buildInputs = [ makeWrapper ];
6666
6767 buildCommand = ''
@@ -72,7 +72,7 @@ let
7272 '';
7373
7474 inherit passthru;
75− };
75+ });
7676 in withPlugins (_: []);
7777
7878 plugins = import ./providers { inherit stdenv lib buildGoPackage fetchFromGitHub; };
pkgs/development/idris-modules/with-packages.nix+3−3
@@ -4,9 +4,9 @@
44
55let paths = stdenv.lib.closePropagation packages;
66in
7−symlinkJoin {
7+stdenv.lib.appendToName "with-packages" (symlinkJoin {
88
9− name = idris.name + "-with-packages";
9+ inherit (idris) name;
1010
1111 paths = paths ++ [idris] ;
1212
@@ -17,4 +17,4 @@ symlinkJoin {
1717 --set IDRIS_LIBRARY_PATH $out/libs
1818 '';
1919
20−}
20+})
pkgs/misc/lilypond/with-fonts.nix+3−3
@@ -5,8 +5,8 @@
55, fonts ? openlilylib-fonts.all
66}:
77
8−stdenv.mkDerivation {
9− name = "${lilypond.name}-with-fonts";
8+stdenv.lib.appendToName "with-fonts" (stdenv.mkDerivation {
9+ inherit (lilypond) name;
1010 phases = "installPhase";
1111 buildInputs = fonts;
1212 nativeBuildInputs = [ lndir ];
@@ -32,4 +32,4 @@ stdenv.mkDerivation {
3232 substituteInPlace $p --replace "exec -a \"${lilypond}" "exec -a \"$out"
3333 done
3434 '';
35−}
35+})