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