biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / shells / zsh / zsh-history / default.nix
blobf2afd98de60a551d20fd65f8301d3c34ebe405b0
1 { lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }:
3 buildGoModule rec {
4   pname = "zsh-history";
5   version = "2019-12-10";
7   src = fetchFromGitHub {
8     owner = "b4b4r07";
9     repo = "history";
10     rev = "8da016bd91b0c2eb53c9980f00eee6abdbb097e2";
11     sha256 = "13n643ik1zjvpk8h9458yd9ffahhbdnigmbrbmpn7b7g23wqqsi3";
12   };
14   vendorHash = "sha256-n5QFN1B2GjbzylFuW9Y4r0+ioIJlfKwcGK8X3ZwKLI8=";
16   nativeBuildInputs = [ installShellFiles ];
18   doCheck = false;
20   postInstall = ''
21     install -d $out/share
22     cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
23     installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
24   '';
26   passthru.tests = {
27     zsh-history-shell-integration = nixosTests.zsh-history;
28   };
30   meta = with lib; {
31     description = "CLI to provide enhanced history for your ZSH shell";
32     homepage = "https://github.com/b4b4r07/history";
33     license = licenses.mit;
34     maintainers = [ ];
35     mainProgram = "history";
36   };