2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-05-29 06:06:01 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-05-29 06:06:01 +00:00
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, python3
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook4
|
2020-05-29 06:06:01 +00:00
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, colord
|
|
|
|
, glib
|
2024-05-15 15:35:15 +00:00
|
|
|
, libadwaita
|
|
|
|
, gtk4
|
2020-05-29 06:06:01 +00:00
|
|
|
, gusb
|
|
|
|
, packagekit
|
|
|
|
, libwebp
|
|
|
|
, libxml2
|
|
|
|
, sane-backends
|
|
|
|
, vala
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-05-29 06:06:01 +00:00
|
|
|
, gobject-introspection
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "simple-scan";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "46.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "mirror://gnome/sources/simple-scan/${lib.versions.major version}/simple-scan-${version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-wW5lkBQv5WO+UUMSKzu7U/awCn2p2VL2HEf6Jve08Kk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-05-29 06:06:01 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
itstool
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-05-29 06:06:01 +00:00
|
|
|
python3
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook4
|
2020-05-29 06:06:01 +00:00
|
|
|
libxml2
|
|
|
|
gobject-introspection # For setup hook
|
2022-04-27 09:35:20 +00:00
|
|
|
vala
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
colord
|
|
|
|
glib
|
|
|
|
gusb
|
2024-05-15 15:35:15 +00:00
|
|
|
libadwaita
|
|
|
|
gtk4
|
2020-05-29 06:06:01 +00:00
|
|
|
libwebp
|
|
|
|
packagekit
|
|
|
|
sane-backends
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs data/meson_compile_gschema.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "simple-scan";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple scanning utility";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "simple-scan";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
A really easy way to scan both documents and photos. You can crop out the
|
|
|
|
bad parts of a photo and rotate it if it is the wrong way round. You can
|
|
|
|
print your scans, export them to pdf, or save them in a range of image
|
|
|
|
formats. Basically a frontend for SANE - which is the same backend as
|
|
|
|
XSANE uses. This means that all existing scanners will work and the
|
|
|
|
interface is well tested.
|
|
|
|
'';
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/simple-scan";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|