mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
43 lines
928 B
Nix
43 lines
928 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, wl-clipboard
|
|
, makeWrapper
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "clipman";
|
|
version = "1.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chmouel";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kuW74iUVLfIUWf3gaKM7IuMU1nfpU9SbSsfeZDbYGhY=";
|
|
};
|
|
|
|
vendorHash = "sha256-I1RWyjyOfppGi+Z5nvAei5zEvl0eQctcH8NP0MYSTbg=";
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/clipman \
|
|
--prefix PATH : ${lib.makeBinPath [ wl-clipboard ]}
|
|
installManPage docs/*.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/chmouel/clipman";
|
|
description = "Simple clipboard manager for Wayland";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ma27 ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "clipman";
|
|
};
|
|
}
|