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.
|
# of plugins, which might be counterintuitive if someone just wants a vanilla Terraform.
|
||||||
if actualPlugins == []
|
if actualPlugins == []
|
||||||
then terraform.overrideAttrs (orig: { passthru = orig.passthru // passthru; })
|
then terraform.overrideAttrs (orig: { passthru = orig.passthru // passthru; })
|
||||||
else stdenv.mkDerivation {
|
else lib.appendToName "with-plugins "(stdenv.mkDerivation {
|
||||||
name = "${terraform.name}-with-plugins";
|
inherit (terraform) name;
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
@ -72,7 +72,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
inherit passthru;
|
inherit passthru;
|
||||||
};
|
});
|
||||||
in withPlugins (_: []);
|
in withPlugins (_: []);
|
||||||
|
|
||||||
plugins = import ./providers { inherit stdenv lib buildGoPackage fetchFromGitHub; };
|
plugins = import ./providers { inherit stdenv lib buildGoPackage fetchFromGitHub; };
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
let paths = stdenv.lib.closePropagation packages;
|
let paths = stdenv.lib.closePropagation packages;
|
||||||
in
|
in
|
||||||
symlinkJoin {
|
stdenv.lib.appendToName "with-packages" (symlinkJoin {
|
||||||
|
|
||||||
name = idris.name + "-with-packages";
|
inherit (idris) name;
|
||||||
|
|
||||||
paths = paths ++ [idris] ;
|
paths = paths ++ [idris] ;
|
||||||
|
|
||||||
@ -17,4 +17,4 @@ symlinkJoin {
|
|||||||
--set IDRIS_LIBRARY_PATH $out/libs
|
--set IDRIS_LIBRARY_PATH $out/libs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
})
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
, fonts ? openlilylib-fonts.all
|
, fonts ? openlilylib-fonts.all
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.lib.appendToName "with-fonts" (stdenv.mkDerivation {
|
||||||
name = "${lilypond.name}-with-fonts";
|
inherit (lilypond) name;
|
||||||
phases = "installPhase";
|
phases = "installPhase";
|
||||||
buildInputs = fonts;
|
buildInputs = fonts;
|
||||||
nativeBuildInputs = [ lndir ];
|
nativeBuildInputs = [ lndir ];
|
||||||
@ -32,4 +32,4 @@ stdenv.mkDerivation {
|
|||||||
substituteInPlace $p --replace "exec -a \"${lilypond}" "exec -a \"$out"
|
substituteInPlace $p --replace "exec -a \"${lilypond}" "exec -a \"$out"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
}
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user