mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
719ce1641b
https://aur.archlinux.org/packages/imagescan-plugin-networkscan#comment-889998 > It seems that Epson has abandoned this software. I have changed the package to download from a mirror hosted by me.
36 lines
1.3 KiB
Nix
36 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, rpmextract }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "imagescan-plugin-networkscan";
|
|
imagescanVersion = "3.65.0";
|
|
version = "1.1.4";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://buzo.eu/mirror/epson/imagescan-bundle-fedora-32-${imagescanVersion}.x64.rpm.tar.gz"
|
|
"https://web.archive.org/web/20221027001620if_/https://download2.ebz.epson.net/imagescanv3/fedora/latest1/rpm/x64/imagescan-bundle-fedora-32-${imagescanVersion}.x64.rpm.tar.gz"
|
|
];
|
|
sha256 = "sha256-fxi63sV+YJOlv1aVTfCPIXOPfNAo+R7zNPvA11sFmMk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ rpmextract ];
|
|
|
|
installPhase = ''
|
|
rpmextract plugins/imagescan-plugin-networkscan-${version}-*.x86_64.rpm
|
|
install -Dm755 usr/libexec/utsushi/networkscan $out/libexec/utsushi/networkscan
|
|
patchelf \
|
|
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
|
--set-rpath ${lib.makeLibraryPath [ stdenv.cc.cc ]} \
|
|
$out/libexec/utsushi/networkscan
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://support.epson.net/linux/en/imagescanv3.php";
|
|
description = "Network scan plugin for ImageScan v3";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|