nixpkgs/pkgs/tools/wayland/clipman/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
928 B
Nix
Raw Normal View History

{ buildGoModule
, fetchFromGitHub
, lib
, wl-clipboard
, makeWrapper
, installShellFiles
}:
2019-09-25 15:37:23 +00:00
buildGoModule rec {
pname = "clipman";
2024-04-19 13:27:58 +00:00
version = "1.6.4";
2019-09-25 15:37:23 +00:00
src = fetchFromGitHub {
2023-10-07 15:48:34 +00:00
owner = "chmouel";
2019-09-25 15:37:23 +00:00
repo = pname;
rev = "v${version}";
2024-04-19 13:27:58 +00:00
sha256 = "sha256-kuW74iUVLfIUWf3gaKM7IuMU1nfpU9SbSsfeZDbYGhY=";
2019-09-25 15:37:23 +00:00
};
2024-04-19 13:27:58 +00:00
vendorHash = "sha256-I1RWyjyOfppGi+Z5nvAei5zEvl0eQctcH8NP0MYSTbg=";
2019-09-25 15:37:23 +00:00
outputs = [ "out" "man" ];
doCheck = false;
nativeBuildInputs = [ makeWrapper installShellFiles ];
2019-09-25 15:37:23 +00:00
postInstall = ''
wrapProgram $out/bin/clipman \
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
installManPage docs/*.1
2019-09-25 15:37:23 +00:00
'';
meta = with lib; {
2023-10-07 15:48:34 +00:00
homepage = "https://github.com/chmouel/clipman";
2019-09-25 15:37:23 +00:00
description = "Simple clipboard manager for Wayland";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ma27 ];
2019-09-25 15:37:23 +00:00
platforms = platforms.linux;
2023-11-27 01:17:53 +00:00
mainProgram = "clipman";
2019-09-25 15:37:23 +00:00
};
}