epkowa: apply recommendations from nixos package audit bot

This commit is contained in:
Jason Lenz 2021-03-19 12:35:58 -05:00
parent 67230d58a4
commit 5f0d9afab6

View File

@ -13,7 +13,6 @@
, rpm , rpm
, cpio , cpio
, getopt , getopt
, patchelf
, autoPatchelfHook , autoPatchelfHook
, gcc , gcc
}: }:
@ -324,17 +323,16 @@ stdenv.mkDerivation rec {
sha256 = "1ma76jj0k3bz0fy06fiyl4di4y77rcryb0mwjmzs5ms2vq9rjysr"; sha256 = "1ma76jj0k3bz0fy06fiyl4di4y77rcryb0mwjmzs5ms2vq9rjysr";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config libtool makeWrapper ];
buildInputs = [ buildInputs = [
gtk2 gtk2
libxml2 libxml2
libtool
libusb-compat-0_1 libusb-compat-0_1
sane-backends sane-backends
makeWrapper
]; ];
patches = [ patches = [
# Patch for compatibility with libpng versions greater than 10499
(fetchpatch { (fetchpatch {
urls = [ urls = [
"https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/iscan/files/iscan-2.28.1.3+libpng-1.5.patch?h=b6e4c805d53b49da79a0f64ef16bb82d6d800fcf" "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/iscan/files/iscan-2.28.1.3+libpng-1.5.patch?h=b6e4c805d53b49da79a0f64ef16bb82d6d800fcf"
@ -342,7 +340,9 @@ stdenv.mkDerivation rec {
]; ];
sha256 = "04y70qjd220dpyh771fiq50lha16pms98mfigwjczdfmx6kpj1jd"; sha256 = "04y70qjd220dpyh771fiq50lha16pms98mfigwjczdfmx6kpj1jd";
}) })
# Patch iscan to search appropriate folders for firmware files
./firmware_location.patch ./firmware_location.patch
# Patch deprecated use of sscanf code to use a more modern C99 compatible version
./sscanf.patch ./sscanf.patch
]; ];
patchFlags = [ "-p0" ]; patchFlags = [ "-p0" ];