diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-10-16 01:57:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 01:57:23 +0000 |
commit | fce8b4837ae1eb74aef36968b93e9776f8715154 (patch) | |
tree | 36c875f471efd9106fe901666640042a921446a3 /pkgs/shells/zsh/zsh-history/default.nix | |
parent | b0081a26e5fb245f64b8b609a8c4b4c7039c879a (diff) | |
parent | 0bfefb0913762fb1ebc8ed278b878e022948a7f3 (diff) | |
download | nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.tar nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.tar.gz nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.tar.bz2 nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.tar.lz nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.tar.xz nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.tar.zst nixlib-fce8b4837ae1eb74aef36968b93e9776f8715154.zip |
Merge pull request #67670 from kampka/zsh-history
zsh-history: init at unstable-2019-08-29
Diffstat (limited to 'pkgs/shells/zsh/zsh-history/default.nix')
-rw-r--r-- | pkgs/shells/zsh/zsh-history/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-history/default.nix b/pkgs/shells/zsh/zsh-history/default.nix new file mode 100644 index 000000000000..6bbcdac2c171 --- /dev/null +++ b/pkgs/shells/zsh/zsh-history/default.nix @@ -0,0 +1,36 @@ +{ lib, fetchFromGitHub, buildGoModule, installShellFiles }: + +buildGoModule rec { + pname = "zsh-history"; + version = "2019-10-07"; + + src = fetchFromGitHub { + owner = "b4b4r07"; + repo = "history"; + rev = "a08ad2dcffc852903ae54b0c5704b8a085009ef7"; + sha256 = "0r3p04my40dagsq1dssnk583qrlcps9f7ajp43z7mq73q3hrya5s"; + }; + + patches = [ + ./0001-Fix-path-marshalling-when-saveing-config.patch + ]; + + nativeBuildInputs = [ installShellFiles ]; + + modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42"; + goPackagePath = "github.com/b4b4r07/history"; + + postInstall = '' + install -d $out/share + cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share" + installShellCompletion --zsh --name _history $out/share/zsh/completions/_history + ''; + + meta = with lib; { + description = "A CLI to provide enhanced history for your ZSH shell"; + license = licenses.mit; + homepage = https://github.com/b4b4r07/history; + platforms = platforms.unix; + maintainers = with maintainers; [ kampka ]; + }; +} |