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

38 lines
803 B
Nix
Raw Normal View History

{ buildGoModule
, fetchFromGitHub
, lib
, wl-clipboard
, makeWrapper
}:
2019-09-25 16:37:23 +01:00
buildGoModule rec {
pname = "clipman";
version = "1.6.1";
2019-09-25 16:37:23 +01:00
src = fetchFromGitHub {
owner = "yory8";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aZvtgeaS3xxl5/A/Pwlbu0sI7bw2MONbEIK42IDcMy0=";
2019-09-25 16:37:23 +01:00
};
2021-06-20 06:57:22 +01:00
vendorSha256 = "sha256-Z/sVCJz/igPDdeczC6pemLub6X6z4ZGlBwBmRsEnXKI=";
2019-09-25 16:37:23 +01:00
doCheck = false;
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
description = "A simple clipboard manager for Wayland";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ma27 ];
2019-09-25 16:37:23 +01:00
platforms = platforms.linux;
};
}