about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorSamy Lahfa <14914796+AkechiShiro@users.noreply.github.com>2023-09-13 18:56:56 +0200
committerYaya <github@uwu.is>2024-01-15 16:06:23 +0100
commitc81c8f00ccce896fbf0964ba683a14345b879d58 (patch)
tree39c54e685bd7606a557dc28478effc6c2ae8170f /pkgs/applications/graphics
parenta735ca18509ac2c71c21c0039f15a61819e3863f (diff)
brscan5: 1.2.9-0 -> 1.3.0-0
* Use sha256 instead of sha512
* Correct patch offset due to the fact that the driver is hardcoded to
look in /opt/brother/scanner/brscan5/models for model metadata.
* see comments for more details : https://github.com/NixOS/nixpkgs/pull/254992#issuecomment-1826811896

(cherry picked from commit 083770a4baf1a6fdb21aab8b2546afcd43d60c6b)
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/sane/backends/brscan5/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/sane/backends/brscan5/default.nix b/pkgs/applications/graphics/sane/backends/brscan5/default.nix
index 59daa9eb09ab8..7bce5301f938a 100644
--- a/pkgs/applications/graphics/sane/backends/brscan5/default.nix
+++ b/pkgs/applications/graphics/sane/backends/brscan5/default.nix
@@ -10,15 +10,15 @@ let
 in
 stdenv.mkDerivation rec {
   pname = "brscan5";
-  version = "1.2.9-0";
+  version = "1.3.0-0";
   src = {
     "i686-linux" = fetchurl {
       url = "https://download.brother.com/welcome/dlf104034/${pname}-${version}.i386.deb";
-      sha256 = "ac23c9a435818955e7882ab06380adf346203ff4e45f384b40e84b8b29642f07";
+      sha256 = "sha256-LpbPUo8iD5CcwUoIOa1UYHQXMrZZJ7PjZpcuyXhXjzk=";
     };
     "x86_64-linux" = fetchurl {
       url = "https://download.brother.com/welcome/dlf104033/${pname}-${version}.amd64.deb";
-      sha256 = "4ec23ff4b457323ae778e871a0f1abcc1848ea105af17850b57f7dcaddcfd96d";
+      sha256 = "sha256-ntVe/e6/cdz3+LSpGilMFZecxfv74pd7ksh85SzEdKc=";
     };
   }."${system}" or (throw "Unsupported system: ${system}");
 
@@ -34,8 +34,8 @@ stdenv.mkDerivation rec {
   postPatch =
     let
       patchOffsetBytes =
-        if system == "x86_64-linux" then 84632
-        else if system == "i686-linux" then 77396
+        if system == "x86_64-linux" then 86528
+        else if system == "i686-linux" then 79140
         else throw "Unsupported system: ${system}";
     in
     ''