2021-02-16 04:12:32 +01:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, wl-clipboard
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2019-09-25 17:37:23 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clipman";
|
2021-12-02 11:28:15 +01:00
|
|
|
version = "1.6.1";
|
2019-09-25 17:37:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yory8";
|
|
|
|
repo = pname;
|
2020-02-19 14:39:59 +01:00
|
|
|
rev = "v${version}";
|
2021-12-02 11:28:15 +01:00
|
|
|
sha256 = "sha256-aZvtgeaS3xxl5/A/Pwlbu0sI7bw2MONbEIK42IDcMy0=";
|
2019-09-25 17:37:23 +02:00
|
|
|
};
|
|
|
|
|
2021-06-20 07:57:22 +02:00
|
|
|
vendorSha256 = "sha256-Z/sVCJz/igPDdeczC6pemLub6X6z4ZGlBwBmRsEnXKI=";
|
2019-09-25 17:37:23 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-25 17:37:23 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clipman \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/yory8/clipman";
|
2019-09-25 17:37:23 +02:00
|
|
|
description = "A simple clipboard manager for Wayland";
|
2021-02-16 04:12:32 +01:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2019-09-25 17:37:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|