Updates hishtory from 215 to 251 (package overlay)

This commit is contained in:
willemml 2023-11-13 01:30:03 -08:00
parent 683a63bff1
commit 71138df089
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
2 changed files with 41 additions and 0 deletions

View file

@ -1,3 +1,4 @@
_final: prev: {
org-auctex = prev.callPackage ./org-auctex.nix {};
hishtory = prev.callPackage ./hishtory.nix {};
}

40
packages/hishtory.nix Normal file
View file

@ -0,0 +1,40 @@
{
buildGoModule,
fetchFromGitHub,
breakpointHook,
lib,
}:
buildGoModule rec {
pname = "hishtory";
version = "0.251";
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
hash = "sha256-as7OO14S2ia9ty/HRP35Zw9EOvFxBQeCzCluDWo/VnI=";
};
vendorHash = "sha256-HzHLGrPXUSkyt2Dr7tLjfJrbg/EPBHkljoXIlPWIppU=";
ldflags = [
"-s -w -X github.com/ddworken/hishtory/client/lib.Version=${version}"
"-extldflags '-static'"
];
excludedPackages = ["backend/server" "client"];
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];
};
}