summary refs log tree commit diff
path: root/pkgs/tools/graphics/unpaper/default.nix
blob: 9b8542a86bba7e4a510ff7c11173ce16fddf103d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, fetchurl, buildPackages, pkg-config, ffmpeg_4 }:

stdenv.mkDerivation rec {
  pname = "unpaper";
  version = "6.1";

  src = fetchurl {
    url = "https://www.flameeyes.eu/files/${pname}-${version}.tar.xz";
    sha256 = "0c5rbkxbmy9k8vxjh4cv0bgnqd3wqc99yzw215vkyjslvbsq8z13";
  };

  nativeBuildInputs = [ pkg-config buildPackages.libxslt.bin ];
  buildInputs = [ ffmpeg_4 ];

  meta = with lib; {
    homepage = "https://www.flameeyes.eu/projects/unpaper";
    description = "Post-processing tool for scanned sheets of paper";
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = [ maintainers.rycee ];
  };
}