summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-25 04:21:47 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-25 15:48:31 -0500
commita0f4d19925705945b2beb393239f1a9f72b5035d (patch)
tree53b22f08af9b858d0ae94113944994ba8a158623 /pkgs/applications/networking
parent73b11060fc0725fbafac8a8393bc0098f284ef33 (diff)
downloadnixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.tar
nixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.tar.gz
nixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.tar.bz2
nixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.tar.lz
nixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.tar.xz
nixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.tar.zst
nixlib-a0f4d19925705945b2beb393239f1a9f72b5035d.zip
treewide: use appendToName where appropriate
Using appendToName preserves the version at the end of the name.
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/cluster/terraform/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix
index 5879c0e83974..ad8bae014542 100644
--- a/pkgs/applications/networking/cluster/terraform/default.nix
+++ b/pkgs/applications/networking/cluster/terraform/default.nix
@@ -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; };