depot/third_party/nixpkgs/pkgs/tools/wayland/clipman/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

42 lines
930 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, wl-clipboard
, makeWrapper
, installShellFiles
}:
buildGoModule rec {
pname = "clipman";
version = "1.6.4";
src = fetchFromGitHub {
owner = "chmouel";
repo = pname;
rev = "v${version}";
sha256 = "sha256-kuW74iUVLfIUWf3gaKM7IuMU1nfpU9SbSsfeZDbYGhY=";
};
vendorHash = "sha256-I1RWyjyOfppGi+Z5nvAei5zEvl0eQctcH8NP0MYSTbg=";
outputs = [ "out" "man" ];
doCheck = false;
nativeBuildInputs = [ makeWrapper installShellFiles ];
postInstall = ''
wrapProgram $out/bin/clipman \
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
installManPage docs/*.1
'';
meta = with lib; {
homepage = "https://github.com/chmouel/clipman";
description = "A simple clipboard manager for Wayland";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux;
mainProgram = "clipman";
};
}