nixpkgs/pkgs/shells/hishtory/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
886 B
Nix
Raw Normal View History

2023-06-01 15:29:43 +01:00
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "hishtory";
2024-04-02 19:57:32 +01:00
version = "0.288";
2023-06-01 15:29:43 +01:00
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
2024-04-02 19:57:32 +01:00
hash = "sha256-fUhyD8PrjeSDwXHF/QCA+4RW4ndRIAx3dNR9lv0PDZY=";
2023-06-01 15:29:43 +01:00
};
2024-04-02 19:57:32 +01:00
vendorHash = "sha256-qw4whXAX8y0x7IWnpZHT45XTQ82CdoWPDnoQhr20cII=";
2023-06-01 15:29:43 +01:00
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
2023-12-30 00:59:28 +00:00
subPackages = [ "." ];
2023-06-01 15:29:43 +01:00
excludedPackages = [ "backend/server" ];
postInstall = ''
mkdir -p $out/share/hishtory
cp client/lib/config.* $out/share/hishtory
'';
2023-12-30 00:59:28 +00:00
doCheck = true;
2023-06-01 15:29:43 +01: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 00:59:28 +00:00
mainProgram = "hishtory";
2023-06-01 15:29:43 +01:00
};
}