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