1 { lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }:
5 version = "2019-12-10";
7 src = fetchFromGitHub {
10 rev = "8da016bd91b0c2eb53c9980f00eee6abdbb097e2";
11 sha256 = "13n643ik1zjvpk8h9458yd9ffahhbdnigmbrbmpn7b7g23wqqsi3";
14 vendorHash = "sha256-n5QFN1B2GjbzylFuW9Y4r0+ioIJlfKwcGK8X3ZwKLI8=";
16 nativeBuildInputs = [ installShellFiles ];
22 cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
23 installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
27 zsh-history-shell-integration = nixosTests.zsh-history;
31 description = "CLI to provide enhanced history for your ZSH shell";
32 homepage = "https://github.com/b4b4r07/history";
33 license = licenses.mit;
35 mainProgram = "history";