imagescan-plugin-networkscan: init at 1.1.4

This commit is contained in:
Nikolay Amiantov 2021-11-23 21:04:50 +03:00
parent e55d12da43
commit 5fc6fd62e6
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchurl, rpmextract }:
stdenv.mkDerivation rec {
pname = "imagescan-plugin-networkscan";
imagescanVersion = "3.65.0";
version = "1.1.4";
src = fetchurl {
url = "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";
license = licenses.unfree;
maintainers = with maintainers; [ abbradar ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -32496,6 +32496,8 @@ with pkgs;
utsushi = callPackage ../misc/drivers/utsushi { };
utsushi-networkscan = callPackage ../misc/drivers/utsushi/networkscan.nix { };
idsk = callPackage ../tools/filesystems/idsk { };
colima = callPackage ../applications/virtualization/colima {};