2023-07-15 17:15:38 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hishtory";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.215";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ddworken";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-XDxAzMQjtCfufWnEO5NXP8Zv823a85qYhkZcEZKxIXs=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-aXHqPk8iBMbe0NlsY3ZR7iozBGCAKlOOQ23FAD/5hL8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
|
|
|
|
|
|
|
|
excludedPackages = [ "backend/server" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/hishtory
|
|
|
|
cp client/lib/config.* $out/share/hishtory
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Your shell history: synced, queryable, and in context";
|
|
|
|
homepage = "https://github.com/ddworken/hishtory";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Enzime ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|