diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2013-09-15 11:57:52 +0200 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2013-09-15 11:57:52 +0200 |
commit | 41e95c68b35c06b0f03d0ad6d17408b359910368 (patch) | |
tree | 5b2f4aca8a6cd30ff680dc90aadfee2328885b73 /pkgs/development/compilers | |
parent | 00abf42fc6641a8513fe1148dbac821e2671e383 (diff) | |
download | nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.tar nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.tar.gz nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.tar.bz2 nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.tar.lz nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.tar.xz nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.tar.zst nixlib-41e95c68b35c06b0f03d0ad6d17408b359910368.zip |
go: adding an option to remove external references in godoc
godoc pages point to googleapis and google plus URLs, for every visit in your local godoc. I added an option to disable that (the hard way, it takes out the references). I don't think it removes any feature of godoc.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/go/1.1.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/go/1.1.nix b/pkgs/development/compilers/go/1.1.nix index 5aeb053e1107..dfb545bb368d 100644 --- a/pkgs/development/compilers/go/1.1.nix +++ b/pkgs/development/compilers/go/1.1.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, bison, glibc, bash, coreutils, makeWrapper, tzdata, iana_etc }: +{ stdenv, fetchurl, bison, glibc, bash, coreutils, makeWrapper, tzdata, iana_etc +, removeGodocExternals ? false }: let loader386 = "${glibc}/lib/ld-linux.so.2"; @@ -50,6 +51,8 @@ stdenv.mkDerivation { sed -i 's,/bin/pwd,'"`type -P pwd`", src/pkg/os/os_test.go # Disable the hostname test sed -i '/TestHostname/areturn' src/pkg/os/os_test.go + '' + stdenv.lib.optionalString removeGodocExternals '' + sed -i -e '/googleapi/d' -e '/javascript">$/,+6d' lib/godoc/godoc.html ''; patches = [ ./cacert.patch ]; |