depot/third_party/nixpkgs/pkgs/tools/misc/clipman/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

32 lines
797 B
Nix

{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
buildGoModule rec {
pname = "clipman";
version = "1.5.2";
src = fetchFromGitHub {
owner = "yory8";
repo = pname;
rev = "v${version}";
sha256 = "1lf5fbzplyc1mpdqgfwbrn8m5568vhjf48580fvvfgbhz6zcil8n";
};
vendorSha256 = "18jw4z0lcrh00yjr3qdkgvlrpfwqbsm0ncz7fp1h72pzkh41byv7";
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/clipman \
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
'';
meta = with lib; {
homepage = "https://github.com/yory8/clipman";
license = licenses.gpl3;
maintainers = with maintainers; [ ma27 ];
description = "A simple clipboard manager for Wayland";
platforms = platforms.linux;
};
}