2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zsh-history";
|
|
|
|
version = "2019-12-10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "b4b4r07";
|
|
|
|
repo = "history";
|
|
|
|
rev = "8da016bd91b0c2eb53c9980f00eee6abdbb097e2";
|
|
|
|
sha256 = "13n643ik1zjvpk8h9458yd9ffahhbdnigmbrbmpn7b7g23wqqsi3";
|
|
|
|
};
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
vendorSha256 = "sha256-n5QFN1B2GjbzylFuW9Y4r0+ioIJlfKwcGK8X3ZwKLI8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -d $out/share
|
|
|
|
cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
|
|
|
|
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
|
|
|
|
'';
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
passthru.tests = {
|
|
|
|
zsh-history-shell-integration = nixosTests.zsh-history;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI to provide enhanced history for your ZSH shell";
|
|
|
|
homepage = "https://github.com/b4b4r07/history";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.mit;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "history";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|