Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / hishtory / default.nix
blobb3d4942620b79988e2fdae87a91d433ffde25977
1 { buildGoModule
2 , fetchFromGitHub
3 , lib
4 }:
6 buildGoModule rec {
7   pname = "hishtory";
8   version = "0.302";
10   src = fetchFromGitHub {
11     owner = "ddworken";
12     repo = pname;
13     rev = "v${version}";
14     hash = "sha256-hqOAHjYYfK74Zvlgyo3i6ljIsvE75+oJccSfCfkS8K4=";
15   };
17   vendorHash = "sha256-5O2UXpQEs/LCnFnP7g+JYifbSeHjzbnoX9KuIKbqVdE=";
19   ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
21   subPackages = [ "." ];
23   excludedPackages = [ "backend/server" ];
25   postInstall = ''
26     mkdir -p $out/share/hishtory
27     cp client/lib/config.* $out/share/hishtory
28   '';
30   doCheck = true;
32   meta = with lib; {
33     description = "Your shell history: synced, queryable, and in context";
34     homepage = "https://github.com/ddworken/hishtory";
35     license = licenses.mit;
36     maintainers = with maintainers; [ ];
37     mainProgram = "hishtory";
38   };