depot/third_party/nixpkgs/pkgs/shells/hishtory/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

40 lines
886 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "hishtory";
version = "0.267";
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
hash = "sha256-wUfDJmwO96HulGTEh5YxTWPUSNAmPk9vpdPYujldIPE=";
};
vendorHash = "sha256-yk1ryXQ750xW7BYTMg0UQYb5DEIJ5ZWvoLLKSo3nx6k=";
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";
};
}