summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-09-28 20:20:39 +0200
committerGitHub <noreply@github.com>2022-09-28 20:20:39 +0200
commit26f2bf4aea29aeb6dfba521f8a431b4e9441032f (patch)
treee6d4f7cc341144c08c032f8faa073d6520a3f24c /pkgs/applications/graphics
parentd3d949d15c140c58cceb31ccfa9224c7a83c780c (diff)
parent4b19b95908778fd2a382fe808d381e6c9a0cc8cc (diff)
downloadnixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.tar
nixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.tar.gz
nixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.tar.bz2
nixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.tar.lz
nixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.tar.xz
nixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.tar.zst
nixpkgs-26f2bf4aea29aeb6dfba521f8a431b4e9441032f.zip
Merge pull request #193369 from zendo/decoder
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/gnome-decoder/default.nix76
1 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/gnome-decoder/default.nix b/pkgs/applications/graphics/gnome-decoder/default.nix
new file mode 100644
index 00000000000..7ae618736ca
--- /dev/null
+++ b/pkgs/applications/graphics/gnome-decoder/default.nix
@@ -0,0 +1,76 @@
+{ lib
+, clangStdenv
+, fetchFromGitLab
+, libclang
+, rustPlatform
+, meson
+, ninja
+, pkg-config
+, glib
+, gtk4
+, libadwaita
+, zbar
+, sqlite
+, pipewire
+, gstreamer
+, gst-plugins-base
+, gst-plugins-bad
+, wrapGAppsHook4
+, appstream-glib
+, desktop-file-utils
+}:
+
+clangStdenv.mkDerivation rec {
+  pname = "gnome-decoder";
+  version = "0.3.1";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "World";
+    repo = "decoder";
+    rev = version;
+    hash = "sha256-WJIOaYSesvLmOzF1Q6o6aLr4KJanXVaNa+r+2LlpKHQ=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-RMHVrv/0q42qFUXyd5BSymzx+BxiyqTX0Jzmxnlhyr4=";
+  };
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    wrapGAppsHook4
+    appstream-glib
+    desktop-file-utils
+  ] ++ (with rustPlatform; [
+    rust.cargo
+    rust.rustc
+    cargoSetupHook
+  ]);
+
+  buildInputs = [
+    glib
+    gtk4
+    libadwaita
+    zbar
+    sqlite
+    pipewire
+    gstreamer
+    gst-plugins-base
+    gst-plugins-bad
+  ];
+
+  LIBCLANG_PATH = "${libclang.lib}/lib";
+
+  meta = with lib; {
+    description = "Scan and Generate QR Codes";
+    homepage = "https://gitlab.gnome.org/World/decoder";
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+    mainProgram = "decoder";
+    maintainers = with maintainers; [ zendo ];
+  };
+}