summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-01-04 15:20:36 +0100
committerPeter Simons <simons@cryp.to>2015-01-04 15:20:36 +0100
commit7af2eee47202965d53aa957cab4fcc32cf809cd1 (patch)
tree4e188a70dfea1df751f423d7c8650b4ee4349e38 /pkgs
parentc7df7f6361cb160ae566065aa840cf07975fef92 (diff)
parent5b9b923abd69c3f2cf531ec20bb654e6257684ff (diff)
downloadnixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.tar
nixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.tar.gz
nixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.tar.bz2
nixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.tar.lz
nixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.tar.xz
nixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.tar.zst
nixlib-7af2eee47202965d53aa957cab4fcc32cf809cd1.zip
Merge pull request #5561 from rycee/package/unpaper
Add package 'unpaper'.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/graphics/unpaper/default.nix20
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/unpaper/default.nix b/pkgs/tools/graphics/unpaper/default.nix
new file mode 100644
index 000000000000..e199eeea132b
--- /dev/null
+++ b/pkgs/tools/graphics/unpaper/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl, pkgconfig, libav, libxslt }:
+
+stdenv.mkDerivation rec {
+  name = "unpaper-${version}";
+  version = "6.1";
+
+  src = fetchurl {
+    url = "https://www.flameeyes.eu/files/${name}.tar.xz";
+    sha256 = "0c5rbkxbmy9k8vxjh4cv0bgnqd3wqc99yzw215vkyjslvbsq8z13";
+  };
+
+  buildInputs = [ pkgconfig libav libxslt ];
+
+  meta = with stdenv.lib; {
+    homepage = https://www.flameeyes.eu/projects/unpaper;
+    description = "Post-processing tool for scanned sheets of paper";
+    license = licenses.gpl2;
+    maintainers = [ maintainers.rycee ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 872f9b9355e4..468bc0839f19 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -11116,6 +11116,8 @@ let
     enableX11 = config.unison.enableX11 or true;
   };
 
+  unpaper = callPackage ../tools/graphics/unpaper { };
+
   uucp = callPackage ../tools/misc/uucp { };
 
   uvccapture = callPackage ../applications/video/uvccapture { };