sane-frontends: boy scout cleanups
This commit is contained in:
parent
67c949a8b6
commit
af1f99143f
@ -1,10 +1,11 @@
|
|||||||
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null}:
|
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sane-frontends-1.0.14";
|
name = "sane-frontends-${version}";
|
||||||
|
version = "1.0.14";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://alioth.debian.org/frs/download.php/file/1140/${name}.tar.gz";
|
url = "https://alioth.debian.org/frs/download.php/latestfile/175/${name}.tar.gz";
|
||||||
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
|
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -12,15 +13,17 @@ stdenv.mkDerivation rec {
|
|||||||
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [sane-backends libX11 gtk2 pkgconfig] ++
|
buildInputs = [ sane-backends libX11 gtk2 ]
|
||||||
(if libusb != null then [libusb] else []);
|
++ stdenv.lib.optional (libusb != null) libusb;
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
meta = {
|
enableParallelBuilding = true;
|
||||||
homepage = http://www.sane-project.org/;
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "Scanner Access Now Easy";
|
description = "Scanner Access Now Easy";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
homepage = http://www.sane-project.org/;
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ stdenv.lib.maintainers.peti ];
|
maintainers = with maintainers; [ peti ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user