2022-07-14 06:29:59 +00:00
|
|
|
{ lib
|
|
|
|
, clangStdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
2023-05-12 14:17:16 +00:00
|
|
|
, cargo
|
2022-07-14 06:29:59 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-05-12 14:17:16 +00:00
|
|
|
, rustc
|
2022-07-14 06:29:59 +00:00
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, zbar
|
|
|
|
, sqlite
|
2023-04-12 15:59:14 +00:00
|
|
|
, openssl
|
2022-07-14 06:29:59 +00:00
|
|
|
, pipewire
|
|
|
|
, gstreamer
|
|
|
|
, gst-plugins-base
|
|
|
|
, gst-plugins-bad
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
}:
|
|
|
|
|
|
|
|
clangStdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-decoder";
|
2023-04-12 15:59:14 +00:00
|
|
|
version = "0.3.3";
|
2022-07-14 06:29:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "decoder";
|
|
|
|
rev = version;
|
2023-04-12 15:59:14 +00:00
|
|
|
hash = "sha256-eMyPN3UxptqavY9tEATW2AP+kpoWaLwUKCwhNQrarVc=";
|
2022-07-14 06:29:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-04-12 15:59:14 +00:00
|
|
|
hash = "sha256-3j1hoFffQzWBy4IKtmoMkLBJmNbntpyn0sjv1K0MmDo=";
|
2022-07-14 06:29:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
2023-05-12 14:17:16 +00:00
|
|
|
cargo
|
|
|
|
rustc
|
2023-05-27 15:43:20 +00:00
|
|
|
rustPlatform.bindgenHook
|
2023-05-12 14:17:16 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
];
|
2022-07-14 06:29:59 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
zbar
|
|
|
|
sqlite
|
2023-04-12 15:59:14 +00:00
|
|
|
openssl
|
2022-07-14 06:29:59 +00:00
|
|
|
pipewire
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|