2019-10-07 10:00:04 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
|
2019-08-29 10:11:11 +02:00
|
|
|
|
2019-10-07 10:00:04 +02:00
|
|
|
buildGoModule rec {
|
2019-08-29 10:11:11 +02:00
|
|
|
pname = "zsh-history";
|
2019-10-07 10:00:04 +02:00
|
|
|
version = "2019-10-07";
|
2019-08-29 10:11:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "b4b4r07";
|
|
|
|
repo = "history";
|
2019-10-07 10:00:04 +02:00
|
|
|
rev = "a08ad2dcffc852903ae54b0c5704b8a085009ef7";
|
|
|
|
sha256 = "0r3p04my40dagsq1dssnk583qrlcps9f7ajp43z7mq73q3hrya5s";
|
2019-08-29 10:11:11 +02:00
|
|
|
};
|
|
|
|
|
2019-09-28 12:50:30 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2019-10-07 10:00:04 +02:00
|
|
|
modSha256 = "0f10b86gyn7m7lw43c8y1m30mdg0i092a319v3cb2qj05jb9vn42";
|
2019-09-27 13:50:47 +02:00
|
|
|
goPackagePath = "github.com/b4b4r07/history";
|
2019-08-29 10:11:11 +02:00
|
|
|
|
2019-09-27 13:50:47 +02:00
|
|
|
postInstall = ''
|
2019-08-29 10:11:11 +02:00
|
|
|
install -d $out/share
|
2019-10-07 10:00:04 +02:00
|
|
|
cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
|
2019-09-28 12:50:30 +02:00
|
|
|
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
|
2019-08-29 10:11:11 +02:00
|
|
|
'';
|
|
|
|
|
2019-09-28 12:32:22 +02:00
|
|
|
meta = with lib; {
|
2019-08-29 10:11:11 +02:00
|
|
|
description = "A CLI to provide enhanced history for your shell";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/b4b4r07/history;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ kampka ];
|
|
|
|
};
|
|
|
|
}
|