5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
40 lines
886 B
Nix
40 lines
886 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "hishtory";
|
|
version = "0.294";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ddworken";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-vwjzJTBgD4XzZekxGk02WW9/A7wLlLBsIUyvt0VCkOg=";
|
|
};
|
|
|
|
vendorHash = "sha256-zTwZ/sMhQdlf7RYfR2/K/m08U1Il0VQmYFyNNiYsWhc=";
|
|
|
|
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
excludedPackages = [ "backend/server" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/hishtory
|
|
cp client/lib/config.* $out/share/hishtory
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
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 ];
|
|
mainProgram = "hishtory";
|
|
};
|
|
}
|
|
|