3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/clipman/default.nix

31 lines
774 B
Nix
Raw Normal View History

2019-09-25 16:37:23 +01:00
{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
buildGoModule rec {
pname = "clipman";
version = "1.5.2";
2019-09-25 16:37:23 +01:00
src = fetchFromGitHub {
owner = "yory8";
repo = pname;
rev = "v${version}";
sha256 = "1lf5fbzplyc1mpdqgfwbrn8m5568vhjf48580fvvfgbhz6zcil8n";
2019-09-25 16:37:23 +01:00
};
modSha256 = "1sim3x794kj3wdw0g432zbgh1cimdmmg1hjgynh9jgm3y8w9q7ij";
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";
2019-09-25 16:37:23 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ ma27 ];
description = "A simple clipboard manager for Wayland";
platforms = platforms.linux;
};
}