nixpkgs-suyu/pkgs/tools/wayland/clipman/default.nix

38 lines
805 B
Nix
Raw Normal View History

{ buildGoModule
, fetchFromGitHub
, lib
, wl-clipboard
, makeWrapper
}:
2019-09-25 17:37:23 +02:00
buildGoModule rec {
pname = "clipman";
version = "1.5.2";
2019-09-25 17:37:23 +02:00
src = fetchFromGitHub {
owner = "yory8";
repo = pname;
rev = "v${version}";
sha256 = "1lf5fbzplyc1mpdqgfwbrn8m5568vhjf48580fvvfgbhz6zcil8n";
2019-09-25 17:37:23 +02:00
};
vendorSha256 = "18jw4z0lcrh00yjr3qdkgvlrpfwqbsm0ncz7fp1h72pzkh41byv7";
2019-09-25 17:37:23 +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; {
homepage = "https://github.com/yory8/clipman";
2019-09-25 17:37:23 +02:00
description = "A simple clipboard manager for Wayland";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ma27 ];
2019-09-25 17:37:23 +02:00
platforms = platforms.linux;
};
}