From f2c25e0c81fcff69a802f2337b176f9d173efc09 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Tue, 19 Apr 2016 14:14:29 +0200 Subject: [PATCH] go: strip binaries in /share --- pkgs/development/compilers/go/1.1.nix | 2 ++ pkgs/development/compilers/go/1.2.nix | 2 ++ pkgs/development/compilers/go/1.3.nix | 2 ++ pkgs/development/compilers/go/1.4.nix | 2 ++ pkgs/development/compilers/go/1.5.nix | 2 ++ pkgs/development/compilers/go/1.6.nix | 2 ++ pkgs/development/compilers/go/default.nix | 2 ++ 7 files changed, 14 insertions(+) diff --git a/pkgs/development/compilers/go/1.1.nix b/pkgs/development/compilers/go/1.1.nix index 0c6d412641491..99fb7b04c7634 100644 --- a/pkgs/development/compilers/go/1.1.nix +++ b/pkgs/development/compilers/go/1.1.nix @@ -90,6 +90,8 @@ stdenv.mkDerivation { cp ./misc/emacs/* $out/share/emacs/site-lisp/ ''; + stripDebugList = [ "bin" "share" ]; + meta = { branch = "1.1"; homepage = http://golang.org/; diff --git a/pkgs/development/compilers/go/1.2.nix b/pkgs/development/compilers/go/1.2.nix index 0454ea96d892e..c8cdee90bea18 100644 --- a/pkgs/development/compilers/go/1.2.nix +++ b/pkgs/development/compilers/go/1.2.nix @@ -80,6 +80,8 @@ stdenv.mkDerivation { cp ./misc/emacs/* $out/share/emacs/site-lisp/ ''; + stripDebugList = [ "bin" "share" ]; + meta = { branch = "1.2"; homepage = http://golang.org/; diff --git a/pkgs/development/compilers/go/1.3.nix b/pkgs/development/compilers/go/1.3.nix index a9a3c10584b08..cdb35c5e69d7b 100644 --- a/pkgs/development/compilers/go/1.3.nix +++ b/pkgs/development/compilers/go/1.3.nix @@ -100,6 +100,8 @@ stdenv.mkDerivation { cp ./misc/emacs/* $out/share/emacs/site-lisp/ ''; + stripDebugList = [ "bin" "share" ]; + setupHook = ./setup-hook.sh; meta = { diff --git a/pkgs/development/compilers/go/1.4.nix b/pkgs/development/compilers/go/1.4.nix index 3a1f39eab2423..82d96088677ec 100644 --- a/pkgs/development/compilers/go/1.4.nix +++ b/pkgs/development/compilers/go/1.4.nix @@ -113,6 +113,8 @@ stdenv.mkDerivation rec { ./all.bash ''; + stripDebugList = [ "bin" "share" ]; + setupHook = ./setup-hook.sh; meta = with stdenv.lib; { diff --git a/pkgs/development/compilers/go/1.5.nix b/pkgs/development/compilers/go/1.5.nix index b5bfac850280e..a69ee3651d998 100644 --- a/pkgs/development/compilers/go/1.5.nix +++ b/pkgs/development/compilers/go/1.5.nix @@ -124,6 +124,8 @@ stdenv.mkDerivation rec { rm -r $out/share/go/pkg/bootstrap ''; + stripDebugList = [ "bin" "share" ]; + setupHook = ./setup-hook.sh; disallowedReferences = [ go_1_4 ]; diff --git a/pkgs/development/compilers/go/1.6.nix b/pkgs/development/compilers/go/1.6.nix index d9924c5674420..1e0970f97c3c3 100644 --- a/pkgs/development/compilers/go/1.6.nix +++ b/pkgs/development/compilers/go/1.6.nix @@ -136,6 +136,8 @@ stdenv.mkDerivation rec { rm -r $out/share/go/pkg/bootstrap ''; + stripDebugList = [ "bin" "share" ]; + setupHook = ./setup-hook.sh; disallowedReferences = [ go_1_4 ]; diff --git a/pkgs/development/compilers/go/default.nix b/pkgs/development/compilers/go/default.nix index c684d7d5ee5db..c058059489d82 100644 --- a/pkgs/development/compilers/go/default.nix +++ b/pkgs/development/compilers/go/default.nix @@ -84,6 +84,8 @@ stdenv.mkDerivation { cp ./misc/emacs/* $out/share/emacs/site-lisp/ ''; + stripDebugList = [ "bin" "share" ]; + meta = { branch = "1.0"; homepage = http://golang.org/;