diff options
author | Felix Buehler <account@buehler.rocks> | 2023-11-26 19:51:44 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2023-11-26 22:00:41 +0100 |
commit | fa3d11ad3b5c54ac91bd1bbf5eb14dd5dfc8d2c2 (patch) | |
tree | f43a647b7be7760f6754d3487b8c8db6d25ab7fb /pkgs/applications/graphics/sane | |
parent | 501680a656e23465a379ad0732a0aec0d434db5c (diff) |
xsane: remove override libpng
Diffstat (limited to 'pkgs/applications/graphics/sane')
-rw-r--r-- | pkgs/applications/graphics/sane/xsane.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/sane/xsane.nix b/pkgs/applications/graphics/sane/xsane.nix index cd64c7b8d44e4..471e2141b5b8f 100644 --- a/pkgs/applications/graphics/sane/xsane.nix +++ b/pkgs/applications/graphics/sane/xsane.nix @@ -11,6 +11,7 @@ , gimpSupport ? false , gimp , nix-update-script +, fetchpatch }: stdenv.mkDerivation rec { @@ -25,6 +26,13 @@ stdenv.mkDerivation rec { hash = "sha256-oOg94nUsT9LLKnHocY0S5g02Y9a1UazzZAjpEI/s+yM="; }; + patches = [ + (fetchpatch { + url = "https://src.fedoraproject.org/rpms/xsane/raw/rawhide/f/xsane-0.998-libpng.patch"; + hash = "sha256-0z292+Waa2g0PCQpUebdWprl9VDyBOY0XgqMJaIcRb8="; + }) + ]; + preConfigure = '' sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/xsane-back-gtk.c chmod a+rX -R . |