diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2017-06-30 16:30:12 +0200 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2017-06-30 16:32:03 +0200 |
commit | 98bd25a02e140ac65ff1ef1fb5339fc04d839db5 (patch) | |
tree | 997aafa4402778b4fd911712e3913c980ec80544 /pkgs/applications/graphics/autotrace | |
parent | a24960d2146e3c15eb56401293605ca3cbc45047 (diff) | |
download | nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.tar nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.tar.gz nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.tar.bz2 nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.tar.lz nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.tar.xz nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.tar.zst nixpkgs-98bd25a02e140ac65ff1ef1fb5339fc04d839db5.zip |
autotrace: build with pstoedit
Diffstat (limited to 'pkgs/applications/graphics/autotrace')
-rw-r--r-- | pkgs/applications/graphics/autotrace/default.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/applications/graphics/autotrace/default.nix b/pkgs/applications/graphics/autotrace/default.nix index f5f81a262f3..2131589339c 100644 --- a/pkgs/applications/graphics/autotrace/default.nix +++ b/pkgs/applications/graphics/autotrace/default.nix @@ -1,9 +1,6 @@ { stdenv, fetchurl, callPackage, libpng12, imagemagick, autoreconfHook, glib, pstoedit, pkgconfig, gettext, darwin }: -# TODO: Solve that it cannot find pstoedit (as it is unable to find -# pstoedit-config) - # TODO: Figure out why the resultant binary is somehow linked against # libpng16.so.16 rather than libpng12. @@ -49,7 +46,19 @@ stdenv.mkDerivation rec { # This complains about various m4 files, but it appears to not be an # actual error. - preConfigure = "glib-gettextize --copy --force"; + preConfigure = '' + glib-gettextize --copy --force + # pstoedit-config no longer exists, it was replaced with pkg-config + mkdir wrappers + cat >wrappers/pstoedit-config <<'EOF' + #!${stdenv.shell} + # replace --version with --modversion for pkg-config + args=''${@/--version/--modversion} + exec pkg-config pstoedit "''${args[@]}" + EOF + chmod +x wrappers/pstoedit-config + export PATH="$PATH:$PWD/wrappers" + ''; meta = with stdenv.lib; { homepage = http://autotrace.sourceforge.net/; |