2023-06-01 16:29:43 +02:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hishtory";
|
2024-02-22 01:55:01 +01:00
|
|
|
version = "0.277";
|
2023-06-01 16:29:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ddworken";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-22 01:55:01 +01:00
|
|
|
hash = "sha256-Gb2E9IlXU+3WuEDIh/McwoHPEUqVAxMeaGVmers5Hvw=";
|
2023-06-01 16:29:43 +02:00
|
|
|
};
|
|
|
|
|
2024-02-22 01:55:01 +01:00
|
|
|
vendorHash = "sha256-qWKLYGDbL5LL3CjD2yz9CjwAM6lL9Pjnbk+ERCmW94c=";
|
2023-06-01 16:29:43 +02:00
|
|
|
|
|
|
|
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
|
|
|
|
|
2023-12-30 01:59:28 +01:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2023-06-01 16:29:43 +02:00
|
|
|
excludedPackages = [ "backend/server" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/hishtory
|
|
|
|
cp client/lib/config.* $out/share/hishtory
|
|
|
|
'';
|
|
|
|
|
2023-12-30 01:59:28 +01:00
|
|
|
doCheck = true;
|
2023-06-01 16:29:43 +02: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 ];
|
2023-12-30 01:59:28 +01:00
|
|
|
mainProgram = "hishtory";
|
2023-06-01 16:29:43 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|