diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-03-31 00:45:06 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-03-31 00:51:47 +0200 |
commit | ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a (patch) | |
tree | c3218cfcde41536eee1963c052edc3fa0f6c6468 /pkgs/applications/graphics/simple-scan | |
parent | c7362b6b039546ca1895e37d048697054cb4b8f7 (diff) | |
download | nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.tar nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.tar.gz nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.tar.bz2 nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.tar.lz nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.tar.xz nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.tar.zst nixpkgs-ee7c9bd86a8ab999b5a50f7c184aad4b85cbae2a.zip |
Add simple-scan 3.16.0.1
Diffstat (limited to 'pkgs/applications/graphics/simple-scan')
-rw-r--r-- | pkgs/applications/graphics/simple-scan/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/simple-scan/default.nix b/pkgs/applications/graphics/simple-scan/default.nix new file mode 100644 index 00000000000..b47a8215fd4 --- /dev/null +++ b/pkgs/applications/graphics/simple-scan/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, cairo, colord, glib, gtk3, intltool, itstool, libxml2 +, makeWrapper, pkgconfig, saneBackends, systemd, vala }: + +let version = "3.16.0.1"; in +stdenv.mkDerivation rec { + name = "simple-scan-${version}"; + + src = fetchurl { + sha256 = "0p1knmbrdwrnjjk5x0szh3ja2lfamaaynj2ai92zgci2ma5xh2ma"; + url = "https://launchpad.net/simple-scan/3.16/${version}/+download/${name}.tar.xz"; + }; + + meta = with stdenv.lib; { + description = "Simple scanning utility"; + 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://launchpad.net/simple-scan; + license = with licenses; gpl3Plus; + platforms = with platforms; linux; + maintainers = with maintainers; [ nckx ]; + }; + + buildInputs = [ cairo colord glib gtk3 intltool itstool libxml2 makeWrapper + pkgconfig saneBackends systemd vala ]; + + enableParallelBuilding = true; + + doCheck = true; + + preFixup = '' + wrapProgram "$out/bin/simple-scan" \ + --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" + ''; +} |