2020-03-27 07:33:21 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, nixosTests }:
|
2019-08-29 08:11:11 +00:00
|
|
|
|
2019-10-07 08:00:04 +00:00
|
|
|
buildGoModule rec {
|
2019-08-29 08:11:11 +00:00
|
|
|
pname = "zsh-history";
|
2019-12-10 12:09:40 +00:00
|
|
|
version = "2019-12-10";
|
2019-08-29 08:11:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "b4b4r07";
|
|
|
|
repo = "history";
|
2019-12-10 12:09:40 +00:00
|
|
|
rev = "8da016bd91b0c2eb53c9980f00eee6abdbb097e2";
|
|
|
|
sha256 = "13n643ik1zjvpk8h9458yd9ffahhbdnigmbrbmpn7b7g23wqqsi3";
|
2019-08-29 08:11:11 +00:00
|
|
|
};
|
|
|
|
|
2019-09-28 10:50:30 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2022-01-31 00:36:15 +00:00
|
|
|
vendorSha256 = "1863ad97y82fx0an1ysalkxnqjz3zfz228wag9a92wdssl1vwzws";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-27 11:50:47 +00:00
|
|
|
postInstall = ''
|
2019-08-29 08:11:11 +00:00
|
|
|
install -d $out/share
|
2019-10-07 08:00:04 +00:00
|
|
|
cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
|
2019-09-28 10:50:30 +00:00
|
|
|
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
|
2019-08-29 08:11:11 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-10-07 19:02:56 +00:00
|
|
|
description = "A CLI to provide enhanced history for your ZSH shell";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/b4b4r07/history";
|
2022-05-05 00:46:39 +00:00
|
|
|
license = licenses.mit;
|
2021-01-18 20:23:49 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "history";
|
|
|
|
platforms = platforms.unix;
|
2019-08-29 08:11:11 +00:00
|
|
|
};
|
2019-12-13 20:47:15 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
zsh-history-shell-integration = nixosTests.zsh-history;
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|