Add dontInstallSrc flag to buildGoPackage

This commit is contained in:
Luca Bruno
2015-02-05 18:07:28 +01:00
parent 4ce497e74f
commit 3f718a743d
14 changed files with 38 additions and 6 deletions

View File

@@ -15,6 +15,10 @@ buildGoPackage rec {
buildInputs = [ iochan ];
propagatedBuildInputs = [ go ];
dontInstallSrc = true;
meta = with lib; {
description = "A simple, no-frills tool for Go cross compilation that behaves a lot like standard go build";
homepage = https://github.com/mitchellh/gox;

View File

@@ -64,12 +64,16 @@ go.stdenv.mkDerivation ( args // {
installPhase = args.installPhase or ''
runHook preInstall
local dir
for d in pkg src; do
mkdir -p $out/share/go
dir="$NIX_BUILD_TOP/go/$d"
[ -e "$dir" ] && cp -r $dir $out/share/go
done
mkdir $out
if [ -z "$dontInstallSrc" ]; then
local dir
for d in pkg src; do
mkdir -p $out/share/go
dir="$NIX_BUILD_TOP/go/$d"
[ -e "$dir" ] && cp -r $dir $out/share/go
done
fi
dir="$NIX_BUILD_TOP/go/bin"
[ -e "$dir" ] && cp -r $dir $out

View File

@@ -13,6 +13,8 @@ buildGoPackage rec {
sha256 = "1kbri59ppil52v7s992q8r6i1zk9lac0s2w00z2lsgc9w1z59qs0";
};
dontInstallSrc = true;
meta = with lib; {
description = "A simple command line client for etcd";
homepage = http://coreos.com/using-coreos/etcd/;

View File

@@ -15,6 +15,8 @@ buildGoPackage rec {
subPackages = [ "./" ];
dontInstallSrc = true;
meta = with lib; {
description = "An autocompletion daemon for the Go programming language";
homepage = https://github.com/nsf/gocode;

View File

@@ -16,6 +16,8 @@ buildGoPackage rec {
subPackages = [ "golint" ];
dontInstallSrc = true;
meta = with lib; {
description = "Linter for Go source code";
homepage = https://github.com/golang/lint;

View File

@@ -15,6 +15,8 @@ buildGoPackage rec {
sha256 = "1drbypby0isdmkq44jmlv59k3jrwvq2jciaccxx2qc2nnx444fkq";
};
dontInstallSrc = true;
meta = with lib; {
description = "Ctags-compatible tag generator for Go";
homepage = https://github.com/nsf/gotags;