Skip to content

Commit

Permalink
simple-scan: Backport fix for RDNN app ID (NixOS#382452)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobby285271 authored Feb 18, 2025
2 parents 9ea04b9 + 17107cf commit cff9cab
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/by-name/si/simple-scan/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
meson,
ninja,
pkg-config,
Expand Down Expand Up @@ -34,6 +35,15 @@ stdenv.mkDerivation rec {
hash = "sha256-wW5lkBQv5WO+UUMSKzu7U/awCn2p2VL2HEf6Jve08Kk=";
};

patches = [
# simple-scan: Use RDNN app ID
# https://gitlab.gnome.org/GNOME/simple-scan/-/issues/390
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/simple-scan/-/commit/c09a6def153e52494072a36233c7e7b3307b67bf.patch";
hash = "sha256-deyssrsVwPAfT5ru6c0LFwR2pEFnZ0v8wMqoi96tw8s=";
})
];

nativeBuildInputs = [
meson
ninja
Expand Down Expand Up @@ -64,11 +74,6 @@ stdenv.mkDerivation rec {
patchShebangs data/meson_compile_gschema.py
'';

postInstall = ''
mkdir -p $out/share/icons/hicolor/scalable/actions/
install -m 444 ../data/icons/scalable/actions/* $out/share/icons/hicolor/scalable/actions/
'';

doCheck = true;

passthru = {
Expand Down

0 comments on commit cff9cab

Please sign in to comment.