2023-06-01 16:29:43 +02:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hishtory";
|
2024-08-19 15:16:57 +02:00
|
|
|
version = "0.304";
|
2023-06-01 16:29:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ddworken";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-08-19 15:16:57 +02:00
|
|
|
hash = "sha256-TcUIgpqJTswtU/QcLgqydQNOcqQ4uM18LLs5pXBgzH4=";
|
2023-06-01 16:29:43 +02:00
|
|
|
};
|
|
|
|
|
2024-08-19 15:16:57 +02:00
|
|
|
vendorHash = "sha256-E5gzLRS7j+1Ch2aly7PpihSJLuPNBx2pHS0apYIa2ZQ=";
|
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;
|
2024-07-28 16:44:11 +02:00
|
|
|
maintainers = [ ];
|
2023-12-30 01:59:28 +01:00
|
|
|
mainProgram = "hishtory";
|
2023-06-01 16:29:43 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|