Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
autoPatchelfHook,
|
|
cups,
|
|
dpkg,
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fflinuxprint";
|
|
version = "1.1.3-4";
|
|
|
|
src = fetchurl {
|
|
url = "https://support-fb.fujifilm.com/driver_downloads/fflinuxprint_${finalAttrs.version}_amd64.deb";
|
|
hash = "sha256-Q0qB4gvEWa10KGt6SngVqraxFePxIQ62nTrFZ44vyrU=";
|
|
curlOpts = "--user-agent Mozilla/5.0"; # HTTP 410 otherwise
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
dpkg
|
|
];
|
|
|
|
buildInputs = [
|
|
cups
|
|
];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/cups/model
|
|
mv {etc,usr/lib} $out
|
|
mv usr/share/ppd/fujifilm/* $out/share/cups/model
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "FujiFILM Linux Printer Driver";
|
|
homepage = "https://support-fb.fujifilm.com";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ jaduff ];
|
|
platforms = lib.platforms.linux;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
})
|