Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
91 lines
1.7 KiB
Nix
91 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
rustPlatform,
|
|
cargo,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
rustc,
|
|
glib,
|
|
gtk4,
|
|
libadwaita,
|
|
sqlite,
|
|
openssl,
|
|
pipewire,
|
|
gst_all_1,
|
|
wrapGAppsHook4,
|
|
appstream-glib,
|
|
desktop-file-utils,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "gnome-decoder";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "decoder";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-lLZ8tll/R9cwk3t/MULmrR1KWZ1e+zneXL93035epPE=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) pname version src;
|
|
hash = "sha256-USfC7HSL1TtjP1SmBRTKkPyKE4DkSn6xeH4mzfIBQWg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
glib
|
|
gtk4
|
|
wrapGAppsHook4
|
|
appstream-glib
|
|
desktop-file-utils
|
|
cargo
|
|
rustc
|
|
rustPlatform.bindgenHook
|
|
rustPlatform.cargoSetupHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
libadwaita
|
|
sqlite
|
|
openssl
|
|
pipewire
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-good
|
|
gst_all_1.gst-plugins-rs # for gtk4paintablesink
|
|
];
|
|
|
|
# Adds vp8enc preset for camera enablement
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix GST_PRESET_PATH : "${gst_all_1.gst-plugins-good}/share/gstreamer-1.0/presets"
|
|
)
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Scan and generate QR codes";
|
|
homepage = "https://gitlab.gnome.org/World/decoder";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ zendo ];
|
|
mainProgram = "decoder";
|
|
platforms = lib.platforms.linux;
|
|
teams = [ lib.teams.gnome-circle ];
|
|
};
|
|
})
|