depot/third_party/nixpkgs/pkgs/tools/wayland/clipman/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

37 lines
798 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, wl-clipboard
, makeWrapper
}:
buildGoModule rec {
pname = "clipman";
version = "1.6.1";
src = fetchFromGitHub {
owner = "yory8";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aZvtgeaS3xxl5/A/Pwlbu0sI7bw2MONbEIK42IDcMy0=";
};
vendorSha256 = "sha256-Z/sVCJz/igPDdeczC6pemLub6X6z4ZGlBwBmRsEnXKI=";
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/clipman \
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
'';
meta = with lib; {
homepage = "https://github.com/yory8/clipman";
description = "A simple clipboard manager for Wayland";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}