about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libzbc
diff options
context:
space:
mode:
authorAlain Zscheile <zseri.devel@ytrizja.de>2022-09-04 02:37:27 +0200
committerAlain Zscheile <zseri.devel@ytrizja.de>2022-09-04 16:12:07 +0200
commit9136910f1e95407c9763cb97ba122169d238a7d5 (patch)
tree4863644073458d8aa4dbc7c77230888b978e95c5 /pkgs/os-specific/linux/libzbc
parent5518e6aba11f50f0953fa21c7ad6a283c4741b95 (diff)
libzbc: init at 5.12.0
Diffstat (limited to 'pkgs/os-specific/linux/libzbc')
-rw-r--r--pkgs/os-specific/linux/libzbc/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libzbc/default.nix b/pkgs/os-specific/linux/libzbc/default.nix
new file mode 100644
index 0000000000000..5fa981a767f24
--- /dev/null
+++ b/pkgs/os-specific/linux/libzbc/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, autoconf-archive
+, autoreconfHook
+, fetchFromGitHub
+, gtk3
+, libtool
+, pkg-config
+, guiSupport ? false
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libzbc";
+  version = "5.12.0";
+
+  src = fetchFromGitHub {
+    owner = "westerndigitalcorporation";
+    repo = "libzbc";
+    rev = "v${version}";
+    sha256 = "qI09dkMCwMym3j1ELrFDNbNB5hW/CzwmFmZhUNDXsfI=";
+  };
+
+  nativeBuildInputs = [
+    autoconf-archive # this can be removed with the next release
+    autoreconfHook
+    libtool
+  ] ++ lib.optionals guiSupport [ pkg-config ];
+
+  buildInputs = lib.optionals guiSupport [ gtk3 ];
+
+  configureFlags = lib.optional guiSupport "--enable-gui";
+
+  meta = with lib; {
+    description = "ZBC device manipulation library";
+    homepage = "https://github.com/westerndigitalcorporation/libzbc";
+    maintainers = with maintainers; [ zseri ];
+    license = with licenses; [ bsd2 lgpl3Plus ];
+    platforms = platforms.linux;
+  };
+}