2019-09-25 16:37:23 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "clipman";
|
2019-10-20 11:27:46 +01:00
|
|
|
version = "1.1.0";
|
2019-09-25 16:37:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yory8";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-10-20 11:27:46 +01:00
|
|
|
sha256 = "083wd9wqsvxsf3w72jqh36php3c85273n3c6j7j997w47k069m32";
|
2019-09-25 16:37:23 +01:00
|
|
|
};
|
|
|
|
|
2019-10-20 11:27:46 +01:00
|
|
|
modSha256 = "0r7bx2vxnjqs4lx17w7q75spdjh3dz4560d62bj6fb5n71hc5mgv";
|
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;
|
|
|
|
};
|
|
|
|
}
|