571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ 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.hostPlatform.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";
|
|
};
|
|
}
|