2021-02-16 03:12:32 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, wl-clipboard
|
|
|
|
, makeWrapper
|
2023-04-29 11:22:03 +00:00
|
|
|
, installShellFiles
|
2021-02-16 03:12:32 +00:00
|
|
|
}:
|
2019-09-25 15:37:23 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clipman";
|
2024-04-19 13:27:58 +00:00
|
|
|
version = "1.6.4";
|
2019-09-25 15:37:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-07 15:48:34 +00:00
|
|
|
owner = "chmouel";
|
2019-09-25 15:37:23 +00:00
|
|
|
repo = pname;
|
2020-02-19 13:39:59 +00:00
|
|
|
rev = "v${version}";
|
2024-04-19 13:27:58 +00:00
|
|
|
sha256 = "sha256-kuW74iUVLfIUWf3gaKM7IuMU1nfpU9SbSsfeZDbYGhY=";
|
2019-09-25 15:37:23 +00:00
|
|
|
};
|
|
|
|
|
2024-04-19 13:27:58 +00:00
|
|
|
vendorHash = "sha256-I1RWyjyOfppGi+Z5nvAei5zEvl0eQctcH8NP0MYSTbg=";
|
2019-09-25 15:37:23 +00:00
|
|
|
|
2023-04-29 11:22:03 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-04-29 11:22:03 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
2019-09-25 15:37:23 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clipman \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
|
2023-04-29 11:22:03 +00:00
|
|
|
installManPage docs/*.1
|
2019-09-25 15:37:23 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-07 15:48:34 +00:00
|
|
|
homepage = "https://github.com/chmouel/clipman";
|
2019-09-25 15:37:23 +00:00
|
|
|
description = "Simple clipboard manager for Wayland";
|
2021-02-16 03:12:32 +00:00
|
|
|
license = licenses.gpl3Only;
|
2023-04-29 11:22:03 +00:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2019-09-25 15:37:23 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "clipman";
|
2019-09-25 15:37:23 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|