mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
31 lines
774 B
Nix
31 lines
774 B
Nix
{ buildGoModule, fetchFromGitHub, lib, wl-clipboard, makeWrapper }:
|
|
|
|
buildGoModule rec {
|
|
pname = "clipman";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yory8";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0d5w94cylrzhwyb4zfgidh6rr1h82dx5y7cxfa37wx5xxcjyyja1";
|
|
};
|
|
|
|
modSha256 = "1sim3x794kj3wdw0g432zbgh1cimdmmg1hjgynh9jgm3y8w9q7ij";
|
|
|
|
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;
|
|
};
|
|
}
|