2019-09-28 11:32:22 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
2019-08-29 09:11:11 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "zsh-history";
|
2019-09-27 09:51:10 +01:00
|
|
|
version = "2019-10-27";
|
2019-08-29 09:11:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "b4b4r07";
|
|
|
|
repo = "history";
|
2019-09-27 09:51:10 +01:00
|
|
|
rev = "527e6f51873992fbf9c1aad70aa3009a0027a8de";
|
|
|
|
sha256 = "12dc380zfg3b9k7rcsyzi9dxqh28c4957b3fsx1nxvqvdm3ralm2";
|
2019-08-29 09:11:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
2019-09-27 12:50:47 +01:00
|
|
|
goPackagePath = "github.com/b4b4r07/history";
|
2019-08-29 09:11:11 +01:00
|
|
|
|
2019-09-27 12:50:47 +01:00
|
|
|
postInstall = ''
|
2019-08-29 09:11:11 +01:00
|
|
|
install -d $out/share
|
2019-09-27 12:50:47 +01:00
|
|
|
cp -r $NIX_BUILD_TOP/go/src/${goPackagePath}/misc/* $out/share
|
2019-08-29 09:11:11 +01:00
|
|
|
cp -r $out/share/zsh/completions $out/share/zsh/site-functions
|
|
|
|
'';
|
|
|
|
|
2019-09-28 11:32:22 +01:00
|
|
|
meta = with lib; {
|
2019-08-29 09:11:11 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|