clipbuzz: init at 2.0.0

This commit is contained in:
Nguyễn Gia Phong 2021-06-20 15:53:54 +07:00
parent 9770439689
commit ad0d8bbe77
No known key found for this signature in database
GPG key ID: 27148B2C06A2224B
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ stdenv, lib, fetchFromSourcehut, zig, libX11, libXfixes }:
stdenv.mkDerivation rec {
pname = "clipbuzz";
version = "2.0.0";
src = fetchFromSourcehut {
owner = "~cnx";
repo = pname;
rev = version;
sha256 = "1qn98bwp7v7blw4v0g4pckgxrky5ggvq9m0kck2kqw8jg9jc15jp";
};
nativeBuildInputs = [ zig ];
buildInputs = [ libX11 libXfixes ];
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
zig build -Drelease-safe -Dcpu=baseline --prefix $out install
'';
meta = with lib; {
description = "Buzz on new X11 clipboard events";
homepage = "https://git.sr.ht/~cnx/clipbuzz";
license = licenses.unlicense;
maintainers = [ maintainers.McSinyx ];
};
}

View file

@ -10008,6 +10008,8 @@ in
clipnotify = callPackage ../tools/misc/clipnotify { };
clipbuzz = callPackage ../tools/misc/clipbuzz { };
xclip = callPackage ../tools/misc/xclip { };
xcur2png = callPackage ../tools/graphics/xcur2png { };