lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

epsonscan2: 6.7.63.0 -> 6.7.70.0

Epson doesn't seem to publish a changelog anywhere.
Remove 32-bit version as it is 2024.

authored by

James Atkins and committed by
Shawn8901
67959531 2d56a18c

+30 -37
+12 -12
pkgs/by-name/ep/epsonscan2/build.patch
··· 64 64 static const int kMaxBuf = 256; 65 65 66 66 diff --git a/src/Controller/Src/Scanner/Engine.cpp b/src/Controller/Src/Scanner/Engine.cpp 67 - index 9489d4b..670bad9 100644 67 + index 8bd842e..d011329 100755 68 68 --- a/src/Controller/Src/Scanner/Engine.cpp 69 69 +++ b/src/Controller/Src/Scanner/Engine.cpp 70 - @@ -263,8 +263,8 @@ SDIError Engine::Open() 71 - //kill es2netif 72 - //kill es2intif 73 - 74 - - system("killall -9 -q es2netif > /dev/null"); 75 - - system("killall -9 -q es2intif > /dev/null"); 76 - + system("@KILLALL@ -9 -q es2netif > /dev/null"); 77 - + system("@KILLALL@ -9 -q es2intif > /dev/null"); 78 - 79 - if (engine_) { 80 - return ExchangeError(engine_->Open()); 70 + @@ -210,8 +210,8 @@ bool Engine::InitWithDeviceInfoDict(const char *deviceInfo) { 71 + SDIError Engine::Open() 72 + { 73 + SDI_TRACE_LOG("Enter"); 74 + - system("killall -9 -q es2netif > /dev/null"); 75 + - system("killall -9 -q es2intif > /dev/null"); 76 + + system("@KILLALL@ -9 -q es2netif > /dev/null"); 77 + + system("@KILLALL@ -9 -q es2intif > /dev/null"); 78 + if (engine_) { 79 + return ExchangeError(engine_->Open()); 80 + } 81 81 diff --git a/src/Standalone/CMakeLists.txt b/src/Standalone/CMakeLists.txt 82 82 index eff3dd3..c2b3803 100644 83 83 --- a/src/Standalone/CMakeLists.txt
+18 -25
pkgs/by-name/ep/epsonscan2/package.nix
··· 25 25 let 26 26 pname = "epsonscan2"; 27 27 description = "Epson Scan 2 scanner driver for many modern Epson scanners and multifunction printers"; 28 - version = "6.7.63.0"; 28 + version = "6.7.70.0"; 29 29 30 30 system = stdenv.hostPlatform.system; 31 31 32 32 src = fetchzip { 33 - url = "https://download3.ebz.epson.net/dsc/f/03/00/15/17/69/0ef02802c476a6564f13cac929859c394f40326a/epsonscan2-6.7.63.0-1.src.tar.gz"; 34 - hash = "sha256-ZLnbIk0I7g6ext5anPD+/lD4qNlk6f2fL0xdIWLcfbY="; 33 + url = "https://download3.ebz.epson.net/dsc/f/03/00/16/14/37/7577ee65efdad48ee2d2f38d9eda75418e490552/epsonscan2-6.7.70.0-1.src.tar.gz"; 34 + hash = "sha256-y7XGxrOpVou/ZSfUffV3qv+SsFFpTiU7pWvtfsiLZWc="; 35 35 }; 36 36 bundle = 37 37 { 38 - "i686-linux" = fetchzip { 39 - name = "${pname}-bundle"; 40 - url = "https://download3.ebz.epson.net/dsc/f/03/00/15/17/67/ceae6a02aaa81cb61012899987fbb5ab891b6ab2/epsonscan2-bundle-6.7.63.0.i686.deb.tar.gz"; 41 - hash = "sha256-h9beAzNdjOhTlZqW0rJbSQXGOpvFRGvTcWw0ZtOqiYY="; 42 - }; 43 - 44 38 "x86_64-linux" = fetchzip { 45 39 name = "${pname}-bundle"; 46 - url = "https://download3.ebz.epson.net/dsc/f/03/00/15/17/68/050e5a55ed90f4efb4ca3bdd34e5797b149443ca/epsonscan2-bundle-6.7.63.0.x86_64.deb.tar.gz"; 47 - hash = "sha256-+S17FfS2h4zZCvE6W+yZvdJb6+OWYTt0ZWCA+pe1NZc="; 40 + url = "https://download3.ebz.epson.net/dsc/f/03/00/16/14/38/7b1780ace96e2c6033bbb667c7f3ed281e4e9f38/epsonscan2-bundle-6.7.70.0.x86_64.deb.tar.gz"; 41 + hash = "sha256-fPNNFgW/VU/YG+jjmSvPZ0WsHibsXY1TNp164GxLHKw="; 48 42 }; 49 43 } 50 44 ."${system}" or (throw "Unsupported system: ${system}"); ··· 56 50 patches = [ 57 51 ./build.patch 58 52 (fetchpatch { 59 - url = "https://github.com/flathub/net.epson.epsonscan2/raw/master/patches/epsonscan2-crash.patch"; 60 - hash = "sha256-srMxlFfnZuJ3ed5veFcJIiZuW27F/3xOS0yr4ywn4FI="; 53 + url = "https://raw.githubusercontent.com/flathub/net.epson.epsonscan2/master/patches/0002-Fix-crash.patch"; 54 + hash = "sha256-rNsFnHq//CJcIZl0M6RLRkIY3YhnJZbikO8SeeC2ktg="; 61 55 }) 62 56 (fetchpatch { 63 - url = "https://raw.githubusercontent.com/flathub/net.epson.epsonscan2/master/patches/epsonscan2-oob-container.patch"; 64 - hash = "sha256-FhXZT0bIBYwdFow2USRJl8Q7j2eqpq98Hh0lHFQlUQY="; 57 + url = "https://raw.githubusercontent.com/flathub/net.epson.epsonscan2/master/patches/0004-Fix-a-crash-on-an-OOB-container-access.patch"; 58 + hash = "sha256-WmA8pmPSJ1xUdeBbE8Jzi6w9p96aIOm0erF3T4EQ6VA="; 65 59 }) 66 60 (fetchpatch { 67 - url = "https://raw.githubusercontent.com/flathub/net.epson.epsonscan2/master/patches/epsonscan2-xdg-open.patch"; 68 - hash = "sha256-4ih3vZjPwWiiAxKfpLIwbbsk1K2oXSuxGbT5PVwfUsc="; 61 + url = "https://raw.githubusercontent.com/flathub/net.epson.epsonscan2/master/patches/0003-Use-XDG-open-to-open-the-directory.patch"; 62 + hash = "sha256-H3lle1SXkkpbBkozYEwiX0z9oTUubTpB+l91utxH03M="; 69 63 }) 70 64 ]; 71 65 72 66 postPatch = '' 67 + rm CMakeCache.txt 68 + 73 69 substituteInPlace src/Controller/Src/Scanner/Engine.cpp \ 74 - --replace '@KILLALL@' ${killall}/bin/killall 70 + --replace-fail '@KILLALL@' ${killall}/bin/killall 75 71 76 72 substituteInPlace src/Controller/Src/Filter/GetOrientation.cpp \ 77 - --replace '@OCR_ENGINE_GETROTATE@' $out/libexec/epsonscan2-ocr/ocr-engine-getrotate 73 + --replace-fail '@OCR_ENGINE_GETROTATE@' $out/libexec/epsonscan2-ocr/ocr-engine-getrotate 78 74 ''; 79 75 80 76 nativeBuildInputs = ··· 127 123 + lib.optionalString withGui '' 128 124 # The icon file extension is .ico but it's actually a png! 129 125 mkdir -p $out/share/icons/hicolor/{48x48,128x128}/apps 130 - convert $src/Resources/Icons/escan2_app.ico -resize 48x48 $out/share/icons/hicolor/48x48/apps/epsonscan2.png 131 - convert $src/Resources/Icons/escan2_app.ico -resize 128x128 $out/share/icons/hicolor/128x128/apps/epsonscan2.png 126 + magick $src/Resources/Icons/escan2_app.ico -resize 48x48 $out/share/icons/hicolor/48x48/apps/epsonscan2.png 127 + magick $src/Resources/Icons/escan2_app.ico -resize 128x128 $out/share/icons/hicolor/128x128/apps/epsonscan2.png 132 128 '' 133 129 + lib.optionalString withNonFreePlugins '' 134 130 ar xf ${bundle}/plugins/epsonscan2-non-free-plugin_*.deb ··· 170 166 </literal> 171 167 ''; 172 168 homepage = "https://support.epson.net/linux/en/epsonscan2.php"; 173 - platforms = [ 174 - "i686-linux" 175 - "x86_64-linux" 176 - ]; 169 + platforms = [ "x86_64-linux" ]; 177 170 sourceProvenance = 178 171 with lib.sourceTypes; 179 172 [ fromSource ] ++ lib.optionals withNonFreePlugins [ binaryNativeCode ];