2019-09-25 16:37:23 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clipman";
|
2019-10-28 09:30:51 +00:00
|
|
|
version = "1.2.0";
|
2019-09-25 16:37:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yory8";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-10-28 09:30:51 +00:00
|
|
|
sha256 = "0266qb8p5l8j25nn51ajsbiij8bh5r7ywphf2x1l7wfhbzgxz12d";
|
2019-09-25 16:37:23 +01:00
|
|
|
};
|
|
|
|
|
2019-10-28 09:30:51 +00:00
|
|
|
modSha256 = "0aw0ng8pk8qzn1iv79iw0v9zr8xdc8p9xnigr3ij86038f7aqdhv";
|
2019-09-25 16:37:23 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|