blob: 30cf116fed14dd9b43b6d26aac76e0b9b497eb0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, gettext
, intltool
, pkg-config
, glib
, imagemagick
, libpng
, pstoedit
, darwin
}:
stdenv.mkDerivation rec {
pname = "autotrace";
version = "0.31.9";
src = fetchFromGitHub {
owner = "autotrace";
repo = "autotrace";
rev = version;
hash = "sha256-8qqB6oKmbz95dNLtdLvb69cEj/P7TzdoKEyJ8+4ITzs=";
};
patches = [
(fetchpatch {
# https://github.com/autotrace/autotrace/pull/105
name = "imagemagick7-support.patch";
url = "https://github.com/autotrace/autotrace/compare/170488e1871d50aad7a800b901e33ded7d31773a...c26a2a059926c595a00839c8d9961e9381206579.patch";
hash = "sha256-Q82LRF/BsJ/Ii2s+7yaYHs9agMKYVYIMnbwqz8P92s0=";
})
];
nativeBuildInputs = [
autoreconfHook
gettext
intltool
pkg-config
];
buildInputs = [
glib
imagemagick
libpng
pstoedit
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Foundation
];
meta = with lib; {
homepage = "https://github.com/autotrace/autotrace";
description = "Utility for converting bitmap into vector graphics";
platforms = platforms.unix;
maintainers = with maintainers; [ hodapp ];
license = licenses.gpl2;
mainProgram = "autotrace";
};
}
|