mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
Updates hishtory from 215 to 251 (package overlay)
This commit is contained in:
parent
683a63bff1
commit
71138df089
2 changed files with 41 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
_final: prev: {
|
||||
org-auctex = prev.callPackage ./org-auctex.nix {};
|
||||
hishtory = prev.callPackage ./hishtory.nix {};
|
||||
}
|
||||
|
|
40
packages/hishtory.nix
Normal file
40
packages/hishtory.nix
Normal 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];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue