nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 31 lines 712 B view raw
1{ stdenv, lib, fetchFromSourcehut, zig, libX11, libXfixes }: 2 3stdenv.mkDerivation rec { 4 pname = "clipbuzz"; 5 version = "2.0.0"; 6 7 src = fetchFromSourcehut { 8 owner = "~cnx"; 9 repo = pname; 10 rev = version; 11 sha256 = "1qn98bwp7v7blw4v0g4pckgxrky5ggvq9m0kck2kqw8jg9jc15jp"; 12 }; 13 14 nativeBuildInputs = [ zig ]; 15 buildInputs = [ libX11 libXfixes ]; 16 17 preBuild = '' 18 export HOME=$TMPDIR 19 ''; 20 21 installPhase = '' 22 zig build -Drelease-safe -Dcpu=baseline --prefix $out install 23 ''; 24 25 meta = with lib; { 26 description = "Buzz on new X11 clipboard events"; 27 homepage = "https://git.sr.ht/~cnx/clipbuzz"; 28 license = licenses.unlicense; 29 maintainers = [ maintainers.McSinyx ]; 30 }; 31}