about summary refs log tree commit diff
path: root/pkgs/tools/misc/clipbuzz
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-20 15:53:54 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-21 11:07:13 +0700
commitad0d8bbe7784542e8a742e6ea4e427382e4a7594 (patch)
treeb1a42b0252de49e8f1ee9932d34810ef9932875a /pkgs/tools/misc/clipbuzz
parent97704396894211590615909cb796d726692c87f7 (diff)
clipbuzz: init at 2.0.0
Diffstat (limited to 'pkgs/tools/misc/clipbuzz')
-rw-r--r--pkgs/tools/misc/clipbuzz/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/clipbuzz/default.nix b/pkgs/tools/misc/clipbuzz/default.nix
new file mode 100644
index 0000000000000..aaa37ad7c18f8
--- /dev/null
+++ b/pkgs/tools/misc/clipbuzz/default.nix
@@ -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 ];
+  };
+}