mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 12:02:47 +00:00
d811bb1dcb
Alioth is now offline -> https://wiki.debian.org/Salsa/AliothMigration Sources moved to other forges (Salsa for example) Some release tarballs are available on alioth-archive.debian.org
30 lines
858 B
Nix
30 lines
858 B
Nix
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sane-frontends";
|
|
version = "1.0.14";
|
|
|
|
src = fetchurl {
|
|
url = "https://alioth-archive.debian.org/releases/sane/${pname}/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
|
'';
|
|
|
|
buildInputs = [ sane-backends libX11 gtk2 ]
|
|
++ stdenv.lib.optional (libusb != null) libusb;
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Scanner Access Now Easy";
|
|
homepage = http://www.sane-project.org/;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ peti ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|