mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
41 lines
879 B
Nix
41 lines
879 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "hishtory";
|
|
version = "0.297";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ddworken";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-qc+TmExj7x7bH5XzppVpwMt7oSK8CtBM/tHAXs4rrlE=";
|
|
};
|
|
|
|
vendorHash = "sha256-zTwZ/sMhQdlf7RYfR2/K/m08U1Il0VQmYFyNNiYsWhc=";
|
|
|
|
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; [ ];
|
|
mainProgram = "hishtory";
|
|
};
|
|
}
|
|
|