nixpkgs/pkgs/shells/hishtory/default.nix
2024-08-12 01:07:57 +00:00

41 lines
861 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "hishtory";
version = "0.303";
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
hash = "sha256-uhORdve07JARKT/BD0VLK6XnN4nehXODswczrALK0MQ=";
};
vendorHash = "sha256-qQIyeqNF8unmpJG4+kekF2KDQjcpFanJp7siX+jWRwQ=";
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 = [ ];
mainProgram = "hishtory";
};
}