From c2a85e04e8e48c6e4538c23d32ac1dfa1a46ebf1 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Mon, 18 May 2015 15:27:33 -0700 Subject: [PATCH] buildGoPackage: Take into account propagatedBuildInputs during rename --- pkgs/development/go-modules/generic/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 2b4d59ca7fb..34cf65b844d 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -54,8 +54,9 @@ go.stdenv.mkDerivation ( renameImports = args.renameImports or ( let - inputsWithAliases = lib.filter (x: x ? goPackageAliases) buildInputs; - rename = to: from: "echo Renaming '${from}' to '${to}'; govers -m ${from} ${to}"; + inputsWithAliases = lib.filter (x: x ? goPackageAliases) + (buildInputs ++ (args.propagatedBuildInputs or [ ])); + rename = to: from: "echo Renaming '${from}' to '${to}'; govers -d -m ${from} ${to}"; renames = p: lib.concatMapStringsSep "\n" (rename p.goPackagePath) p.goPackageAliases; in lib.concatMapStringsSep "\n" renames inputsWithAliases);