depot/third_party/nixpkgs/pkgs/shells/hishtory/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

37 lines
831 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "hishtory";
version = "0.208";
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
hash = "sha256-TEto5lLH5nwqJ9PaYKrYCNW4/zrIICANQlGmqwDbOm4=";
};
vendorHash = "sha256-FodgIELV5JbqP3h/mIDDYARZcols9ZEtVREW1853EOI=";
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
excludedPackages = [ "backend/server" ];
postInstall = ''
mkdir -p $out/share/hishtory
cp client/lib/config.* $out/share/hishtory
'';
doCheck = false;
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 ];
};
}