2019-09-25 15:37:23 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clipman";
|
2020-05-08 08:37:28 +00:00
|
|
|
version = "1.5.1";
|
2019-09-25 15:37:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yory8";
|
|
|
|
repo = pname;
|
2020-02-19 13:39:59 +00:00
|
|
|
rev = "v${version}";
|
2020-05-08 08:37:28 +00:00
|
|
|
sha256 = "09qvd7p63y7kh2i22pc89kr5wdnsbkraj5az9ds3bp3yj4q2mfyn";
|
2019-09-25 15:37:23 +00:00
|
|
|
};
|
|
|
|
|
2020-02-27 10:34:00 +00:00
|
|
|
modSha256 = "1sim3x794kj3wdw0g432zbgh1cimdmmg1hjgynh9jgm3y8w9q7ij";
|
2019-09-25 15:37:23 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clipman \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/yory8/clipman";
|
2019-09-25 15:37:23 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
description = "A simple clipboard manager for Wayland";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|