treewide: use appendToName where appropriate
Using appendToName preserves the version at the end of the name.
This commit is contained in:
parent
73b11060fc
commit
a0f4d19925
@ -60,8 +60,8 @@ let
|
||||
# of plugins, which might be counterintuitive if someone just wants a vanilla Terraform.
|
||||
if actualPlugins == []
|
||||
then terraform.overrideAttrs (orig: { passthru = orig.passthru // passthru; })
|
||||
else stdenv.mkDerivation {
|
||||
name = "${terraform.name}-with-plugins";
|
||||
else lib.appendToName "with-plugins "(stdenv.mkDerivation {
|
||||
inherit (terraform) name;
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
@ -72,7 +72,7 @@ let
|
||||
'';
|
||||
|
||||
inherit passthru;
|
||||
};
|
||||
});
|
||||
in withPlugins (_: []);
|
||||
|
||||
plugins = import ./providers { inherit stdenv lib buildGoPackage fetchFromGitHub; };
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
let paths = stdenv.lib.closePropagation packages;
|
||||
in
|
||||
symlinkJoin {
|
||||
stdenv.lib.appendToName "with-packages" (symlinkJoin {
|
||||
|
||||
name = idris.name + "-with-packages";
|
||||
inherit (idris) name;
|
||||
|
||||
paths = paths ++ [idris] ;
|
||||
|
||||
@ -17,4 +17,4 @@ symlinkJoin {
|
||||
--set IDRIS_LIBRARY_PATH $out/libs
|
||||
'';
|
||||
|
||||
}
|
||||
})
|
||||
|
@ -5,8 +5,8 @@
|
||||
, fonts ? openlilylib-fonts.all
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "${lilypond.name}-with-fonts";
|
||||
stdenv.lib.appendToName "with-fonts" (stdenv.mkDerivation {
|
||||
inherit (lilypond) name;
|
||||
phases = "installPhase";
|
||||
buildInputs = fonts;
|
||||
nativeBuildInputs = [ lndir ];
|
||||
@ -32,4 +32,4 @@ stdenv.mkDerivation {
|
||||
substituteInPlace $p --replace "exec -a \"${lilypond}" "exec -a \"$out"
|
||||
done
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user