nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 86 lines 1.8 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 meson, 6 ninja, 7 pkg-config, 8 gettext, 9 itstool, 10 wrapGAppsHook4, 11 cairo, 12 gdk-pixbuf, 13 colord, 14 glib, 15 libadwaita, 16 gtk4, 17 gusb, 18 packagekit, 19 libwebp, 20 libxml2, 21 sane-backends, 22 vala, 23 gnome, 24 gobject-introspection, 25}: 26 27stdenv.mkDerivation (finalAttrs: { 28 pname = "simple-scan"; 29 version = "49.1"; 30 31 src = fetchurl { 32 url = "mirror://gnome/sources/simple-scan/${lib.versions.major finalAttrs.version}/simple-scan-${finalAttrs.version}.tar.xz"; 33 hash = "sha256-mujUFR7K+VhF65+ZtDbVecg48s8Cdj+6O8A3gCUb4zQ="; 34 }; 35 36 nativeBuildInputs = [ 37 meson 38 ninja 39 gettext 40 itstool 41 pkg-config 42 wrapGAppsHook4 43 libxml2 44 gobject-introspection # For setup hook 45 vala 46 ]; 47 48 buildInputs = [ 49 cairo 50 gdk-pixbuf 51 colord 52 glib 53 gusb 54 libadwaita 55 gtk4 56 libwebp 57 packagekit 58 sane-backends 59 ]; 60 61 doCheck = true; 62 63 passthru = { 64 updateScript = gnome.updateScript { 65 packageName = "simple-scan"; 66 }; 67 }; 68 69 meta = { 70 description = "Simple scanning utility"; 71 mainProgram = "simple-scan"; 72 longDescription = '' 73 A really easy way to scan both documents and photos. You can crop out the 74 bad parts of a photo and rotate it if it is the wrong way round. You can 75 print your scans, export them to pdf, or save them in a range of image 76 formats. Basically a frontend for SANE - which is the same backend as 77 XSANE uses. This means that all existing scanners will work and the 78 interface is well tested. 79 ''; 80 homepage = "https://gitlab.gnome.org/GNOME/simple-scan"; 81 changelog = "https://gitlab.gnome.org/GNOME/simple-scan/-/blob/${finalAttrs.version}/NEWS?ref_type=tags"; 82 license = lib.licenses.gpl3Plus; 83 teams = [ lib.teams.gnome ]; 84 platforms = lib.platforms.linux; 85 }; 86})