nixpkgs/pkgs/applications/graphics/gnome-decoder/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.3 KiB
Nix
Raw Normal View History

2022-07-14 06:29:59 +00:00
{ lib
, clangStdenv
, fetchFromGitLab
, rustPlatform
, cargo
2022-07-14 06:29:59 +00:00
, meson
, ninja
, pkg-config
, 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
cargo
rustc
2023-05-27 15:43:20 +00:00
rustPlatform.bindgenHook
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 ];
};
}