mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
38 lines
780 B
Nix
38 lines
780 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cliphist";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sentriz";
|
|
repo = "cliphist";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tImRbWjYCdIY8wVMibc5g5/qYZGwgT9pl4pWvY7BDlI=";
|
|
};
|
|
|
|
vendorHash = "sha256-gG8v3JFncadfCEUa7iR6Sw8nifFNTciDaeBszOlGntU=";
|
|
|
|
postInstall = ''
|
|
cp ${src}/contrib/* $out/bin/
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Wayland clipboard manager";
|
|
homepage = "https://github.com/sentriz/cliphist";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
mainProgram = "cliphist";
|
|
};
|
|
}
|