at 23.11-beta 52 lines 1.1 kB view raw
1{ autoPatchelfHook 2, cups 3, dpkg 4, fetchurl 5, lib 6, stdenv 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "fflinuxprint"; 11 version = "1.1.3-4"; 12 13 src = fetchurl { 14 url = "https://support-fb.fujifilm.com/driver_downloads/fflinuxprint_${finalAttrs.version}_amd64.deb"; 15 hash = "sha256-Q0qB4gvEWa10KGt6SngVqraxFePxIQ62nTrFZ44vyrU="; 16 curlOpts = "--user-agent Mozilla/5.0"; # HTTP 410 otherwise 17 }; 18 19 sourceRoot = "."; 20 unpackCmd = "dpkg-deb -x $curSrc ."; 21 22 nativeBuildInputs = [ 23 autoPatchelfHook 24 dpkg 25 ]; 26 27 buildInputs = [ 28 cups 29 ]; 30 31 dontConfigure = true; 32 dontBuild = true; 33 34 installPhase = '' 35 runHook preInstall 36 37 mkdir -p $out/share/cups/model 38 mv {etc,usr/lib} $out 39 mv usr/share/ppd/fujifilm/* $out/share/cups/model 40 41 runHook postInstall 42 ''; 43 44 meta = { 45 description = "FujiFILM Linux Printer Driver"; 46 homepage = "https://support-fb.fujifilm.com"; 47 license = lib.licenses.unfree; 48 maintainers = with lib.maintainers; [ jaduff ]; 49 platforms = lib.platforms.linux; 50 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 51 }; 52})