Skip to content

Commit

Permalink
gnome-decoder: init at 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zendo committed Sep 28, 2022
1 parent b39924f commit 4b19b95
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
76 changes: 76 additions & 0 deletions pkgs/applications/graphics/gnome-decoder/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
5 changes: 5 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6696,6 +6696,11 @@ with pkgs;

gnome-desktop = callPackage ../development/libraries/gnome-desktop { };

gnome-decoder = callPackage ../applications/graphics/gnome-decoder {
inherit (gst_all_1) gstreamer gst-plugins-base;
gst-plugins-bad = gst_all_1.gst-plugins-bad.override { enableZbar = true; };
};

gnome-feeds = callPackage ../applications/networking/feedreaders/gnome-feeds {};

gnome-keysign = callPackage ../tools/security/gnome-keysign { };
Expand Down

0 comments on commit 4b19b95

Please sign in to comment.