diff options
author | Michael Hoang <enzime@users.noreply.github.com> | 2023-06-02 00:29:43 +1000 |
---|---|---|
committer | Michael Hoang <enzime@users.noreply.github.com> | 2023-06-02 00:30:46 +1000 |
commit | a5ba7119689205dfceadb9426af1b7f276f2e341 (patch) | |
tree | a2a5efe86f8637a269fc7317244aeb0fdf9c47fc /pkgs/shells/hishtory | |
parent | 5e871d8aa6f57cc8e0dc087d1c5013f6e212b4ce (diff) |
hishtory: init at 0.208
Diffstat (limited to 'pkgs/shells/hishtory')
-rw-r--r-- | pkgs/shells/hishtory/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/shells/hishtory/default.nix b/pkgs/shells/hishtory/default.nix new file mode 100644 index 0000000000000..818dd4b11281d --- /dev/null +++ b/pkgs/shells/hishtory/default.nix @@ -0,0 +1,37 @@ +{ 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 ]; + }; +} + |