2019-09-25 18:37:23 +03:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clipman";
|
2020-05-13 01:51:32 +03:00
|
|
|
version = "1.5.2";
|
2019-09-25 18:37:23 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yory8";
|
|
|
|
repo = pname;
|
2020-02-19 16:39:59 +03:00
|
|
|
rev = "v${version}";
|
2020-05-13 01:51:32 +03:00
|
|
|
sha256 = "1lf5fbzplyc1mpdqgfwbrn8m5568vhjf48580fvvfgbhz6zcil8n";
|
2019-09-25 18:37:23 +03:00
|
|
|
};
|
|
|
|
|
2020-05-01 04:59:00 +03:00
|
|
|
vendorSha256 = "18jw4z0lcrh00yjr3qdkgvlrpfwqbsm0ncz7fp1h72pzkh41byv7";
|
2019-09-25 18:37:23 +03:00
|
|
|
|
2020-08-04 03:26:27 +03:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-25 18:37:23 +03:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clipman \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/yory8/clipman";
|
2019-09-25 18:37:23 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
description = "A simple clipboard manager for Wayland";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-07-31 06:58:04 +03:00
|
|
|
}
|