mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
2b6a0352c5
Get src from GitLab as the tarball is no longer available from xsane.org. Add passthru update script and myself as maintainer.
48 lines
1005 B
Nix
48 lines
1005 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, sane-backends
|
|
, sane-frontends
|
|
, libX11
|
|
, gtk2
|
|
, pkg-config
|
|
, libpng
|
|
, libusb-compat-0_1
|
|
, gimpSupport ? false
|
|
, gimp
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xsane";
|
|
version = "0.999";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "frontend";
|
|
group = "sane-project";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-oOg94nUsT9LLKnHocY0S5g02Y9a1UazzZAjpEI/s+yM=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/xsane-back-gtk.c
|
|
chmod a+rX -R .
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ]
|
|
++ lib.optional gimpSupport gimp;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.sane-project.org/";
|
|
description = "Graphical scanning frontend for sane";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ melling ];
|
|
};
|
|
}
|