summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2019-09-27 13:50:47 +0200
committerChristian Kampka <christian@kampka.net>2019-09-28 13:09:17 +0200
commitab42e3936776a2aab8a022ecb4dff0d16c3fbc5c (patch)
tree9b8ee8ed31464adccc7ca0ef34b1af88301f5ff0 /pkgs/shells
parent887c1741dc5dbc26f2e25d45552a6b37dea8ada5 (diff)
downloadnixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.tar
nixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.tar.gz
nixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.tar.bz2
nixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.tar.lz
nixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.tar.xz
nixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.tar.zst
nixpkgs-ab42e3936776a2aab8a022ecb4dff0d16c3fbc5c.zip
zsh-history: package build improvements
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/zsh-history/default.nix16
1 files changed, 3 insertions, 13 deletions
diff --git a/pkgs/shells/zsh/zsh-history/default.nix b/pkgs/shells/zsh/zsh-history/default.nix
index 09d61093354..dd04219772a 100644
--- a/pkgs/shells/zsh/zsh-history/default.nix
+++ b/pkgs/shells/zsh/zsh-history/default.nix
@@ -14,20 +14,11 @@ buildGoPackage rec {
   };
 
   goDeps = ./deps.nix;
-  goPackagePath = "history";
+  goPackagePath = "github.com/b4b4r07/history";
 
-  preConfigure = ''
-    # Extract the source
-    mkdir -p "$NIX_BUILD_TOP/go/src/github.com/b4b4r07"
-    cp -a $NIX_BUILD_TOP/source "$NIX_BUILD_TOP/go/src/github.com/b4b4r07/history"
-    export GOPATH=$NIX_BUILD_TOP/go/src/github.com/b4b4r07/history:$GOPATH
-  '';
-
-  installPhase = ''
-    install -d "$bin/bin"
-    install -m 0755 $NIX_BUILD_TOP/go/bin/history "$bin/bin"
+  postInstall = ''
     install -d $out/share
-    cp -r $NIX_BUILD_TOP/go/src/history/misc/* $out/share
+    cp -r $NIX_BUILD_TOP/go/src/${goPackagePath}/misc/* $out/share
     cp -r $out/share/zsh/completions $out/share/zsh/site-functions
   '';
 
@@ -37,6 +28,5 @@ buildGoPackage rec {
     homepage = https://github.com/b4b4r07/history;
     platforms = platforms.unix;
     maintainers = with maintainers; [ kampka ];
-    outputsToInstall = [ "out" "bin" ];
   };
 }