···
1
-
{ lib, stdenv, fetchurl, callPackage, patchelf, makeWrapper, coreutils, libusb-compat-0_1 }:
1
+
{ stdenv, lib, fetchurl, callPackage, patchelf, makeWrapper, coreutils, libusb-compat-0_1 }:
myPatchElf = file: with lib; ''
patchelf --set-interpreter \
···
10
-
udevRules = callPackage ./udev_rules_type1.nix {};
9
+
udevRules = callPackage ./udev_rules_type1.nix { };
12
-
in stdenv.mkDerivation rec {
13
-
name = "brscan4-0.4.8-1";
15
-
if stdenv.hostPlatform.system == "i686-linux" then
17
-
url = "http://download.brother.com/welcome/dlf006646/${name}.i386.deb";
18
-
sha256 = "15hrf1gpm36lniqi6yf47dvdqjinm644xb752c6rcv8n06wb79ag";
20
-
else if stdenv.hostPlatform.system == "x86_64-linux" then
22
-
url = "https://download.brother.com/welcome/dlf006645/${name}.amd64.deb";
23
-
sha256 = "0pyprjl0capg403yp6pp07gd6msx9kn7bzjcdswdbn28fyxrk5l4";
25
-
else throw "${name} is not supported on ${stdenv.hostPlatform.system} (only i686-linux and x86_64 linux are supported)";
12
+
stdenv.mkDerivation rec {
14
+
version = "0.4.9-1";
16
+
"i686-linux" = fetchurl {
17
+
url = "http://download.brother.com/welcome/dlf006646/${pname}-${version}.i386.deb";
18
+
sha256 = "0pkg9aqvnkpjnb9cgzf7lxw2g4jqrf2w98irkv22r0gfsfs3nwma";
20
+
"x86_64-linux" = fetchurl {
22
+
url = "https://download.brother.com/welcome/dlf006645/${pname}-${version}.amd64.deb";
23
+
sha256 = "0kakkl8rmsi2yr3f8vd1kk8vsl9g2ijhqil1cvvbwrhwgi0b7ai7";
25
+
}."${stdenv.hostPlatform.system}";
···
description = "Brother brscan4 sane backend driver";
homepage = "http://www.brother.com";
90
-
platforms = lib.platforms.linux;
90
+
platforms = [ "i686-linux" "x86_64-linux" ];
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ jraygauthier ];