2023-07-15 17:15:38 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hishtory";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.297";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ddworken";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-qc+TmExj7x7bH5XzppVpwMt7oSK8CtBM/tHAXs4rrlE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-zTwZ/sMhQdlf7RYfR2/K/m08U1Il0VQmYFyNNiYsWhc=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
excludedPackages = [ "backend/server" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/hishtory
|
|
|
|
cp client/lib/config.* $out/share/hishtory
|
|
|
|
'';
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
doCheck = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-13 08:15:51 +00:00
|
|
|
mainProgram = "hishtory";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|