buildGoPackage: use $out instead of $bin

This commit is contained in:
zowoq
2020-04-28 20:30:23 +10:00
parent 453dca2edc
commit 3f17518490
3 changed files with 8 additions and 18 deletions
@@ -203,15 +203,15 @@ let
installPhase = args.installPhase or ''
runHook preInstall
mkdir -p $bin
mkdir -p $out
dir="$NIX_BUILD_TOP/go/bin"
[ -e "$dir" ] && cp -r $dir $bin
[ -e "$dir" ] && cp -r $dir $out
runHook postInstall
'';
preFixup = preFixup + ''
find $bin/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
'';
strictDeps = true;
@@ -235,9 +235,6 @@ let
enableParallelBuilding = enableParallelBuilding;
# I prefer to call this dev but propagatedBuildInputs expects $out to exist
outputs = args.outputs or [ "bin" "out" ];
meta = {
# Add default meta information
homepage = "https://${goPackagePath}";