mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
41 lines
861 B
Nix
41 lines
861 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "hishtory";
|
|
version = "0.302";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ddworken";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-hqOAHjYYfK74Zvlgyo3i6ljIsvE75+oJccSfCfkS8K4=";
|
|
};
|
|
|
|
vendorHash = "sha256-5O2UXpQEs/LCnFnP7g+JYifbSeHjzbnoX9KuIKbqVdE=";
|
|
|
|
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 = [ ];
|
|
mainProgram = "hishtory";
|
|
};
|
|
}
|
|
|