imagemagick: split dev output to fix #9604

Also fixup references to imagemagick.

Changed files
+24 -18
nixos
modules
services
web-servers
apache-httpd
pkgs
applications
editors
emacs-modes
emacs-w3m
graphics
ImageMagick
misc
calibre
networking
instant-messengers
pidgin-plugins
pidgin-latex
window-managers
misc
screensavers
rss-glx
tools
security
typesetting
asciidoc
tex
dblatex
top-level
+1 -1
nixos/modules/services/web-servers/apache-httpd/mediawiki.nix
···
# Paths to external programs.
$wgDiff3 = "${pkgs.diffutils}/bin/diff3";
$wgDiff = "${pkgs.diffutils}/bin/diff";
-
$wgImageMagickConvertCommand = "${pkgs.imagemagick}/bin/convert";
+
$wgImageMagickConvertCommand = "${pkgs.imagemagick.out}/bin/convert";
#$wgDebugLogFile = "/tmp/mediawiki_debug_log.txt";
+3 -3
pkgs/applications/editors/emacs-modes/emacs-w3m/default.nix
···
patchPhase = ''
sed -i "w3m.el" \
-e 's|defcustom w3m-command nil|defcustom w3m-command "${w3m}/bin/w3m"|g ;
-
s|(w3m-which-command "display")|"${imagemagick}/bin/display"|g'
+
s|(w3m-which-command "display")|"${imagemagick.out}/bin/display"|g'
sed -i "w3m-image.el" \
-
-e 's|(w3m-which-command "convert")|"${imagemagick}/bin/convert"|g ;
-
s|(w3m-which-command "identify")|"${imagemagick}/bin/identify"|g'
+
-e 's|(w3m-which-command "convert")|"${imagemagick.out}/bin/convert"|g ;
+
s|(w3m-which-command "identify")|"${imagemagick.out}/bin/identify"|g'
'';
configureFlags = [
+11 -5
pkgs/applications/graphics/ImageMagick/default.nix
···
patches = [ ./imagetragick.patch ] ++ cfg.patches;
-
outputs = [ "out" "doc" ];
+
outputs = [ "dev" "out" "doc" ]; # bin/ isn't really big
+
outputMan = "out"; # it's tiny
enableParallelBuilding = true;
···
;
postInstall = ''
-
-
(cd "$out/include" && ln -s ImageMagick* ImageMagick)
+
(cd "$dev/include" && ln -s ImageMagick* ImageMagick)
+
moveToOutput "bin/*-config" "$dev"
+
moveToOutput "lib/ImageMagick-*/config-Q16" "$dev" # includes configure params
+
for file in "$dev"/bin/*-config; do
+
substituteInPlace "$file" --replace pkg-config \
+
"PKG_CONFIG_PATH='$dev/lib/pkgconfig' '${pkgconfig}/bin/pkg-config'"
+
done
'' + lib.optionalString (ghostscript != null) ''
for la in $out/lib/*.la; do
-
sed 's|-lgs|-L${ghostscript}/lib -lgs|' -i $la
+
sed 's|-lgs|-L${lib.getLib ghostscript}/lib -lgs|' -i $la
done
'';
meta = with stdenv.lib; {
homepage = http://www.imagemagick.org/;
description = "A software suite to create, edit, compose, or convert bitmap images";
-
platforms = platforms.linux ++ [ "x86_64-darwin" ];
+
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ the-kenny wkennington ];
};
}
+2 -2
pkgs/applications/misc/calibre/default.nix
···
export HOME=$TMPDIR/fakehome
export POPPLER_INC_DIR=${poppler_utils.dev}/include/poppler
export POPPLER_LIB_DIR=${poppler_utils.out}/lib
-
export MAGICK_INC=${imagemagick}/include/ImageMagick
-
export MAGICK_LIB=${imagemagick}/lib
+
export MAGICK_INC=${imagemagick.dev}/include/ImageMagick
+
export MAGICK_LIB=${imagemagick.out}/lib
export FC_INC_DIR=${fontconfig.dev}/include/fontconfig
export FC_LIB_DIR=${fontconfig.lib}/lib
export PODOFO_INC_DIR=${podofo}/include/podofo
+1 -1
pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix
···
'';
passthru = {
-
wrapArgs = "--prefix PATH ':' ${texLive}/bin:${imagemagick}/bin";
+
wrapArgs = "--prefix PATH ':' ${texLive}/bin:${imagemagick.out}/bin";
};
meta = with stdenv.lib; {
+1 -1
pkgs/applications/window-managers/i3/lock-fancy.nix
···
sed -i -e "s|dirname|${coreutils}/bin/dirname|" lock
sed -i -e "s|rm |${coreutils}/bin/rm |" lock
sed -i -e "s|scrot |${scrot}/bin/scrot |" lock
-
sed -i -e "s|convert |${imagemagick}/bin/convert |" lock
+
sed -i -e "s|convert |${imagemagick.out}/bin/convert |" lock
sed -i -e "s|awk |${gawk}/bin/awk|" lock
sed -i -e "s|i3lock |${i3lock-color}/bin/i3lock-color |" lock
'';
+1 -1
pkgs/misc/screensavers/rss-glx/default.nix
···
buildInputs = [ pkgconfig mesa xlibsWrapper imagemagick libtiff bzip2 ];
-
NIX_CFLAGS_COMPILE = "-I${imagemagick}/include/ImageMagick";
+
NIX_CFLAGS_COMPILE = "-I${imagemagick.dev}/include/ImageMagick";
NIX_LDFLAGS= "-rpath ${libXext}/lib";
meta = {
+1 -1
pkgs/tools/security/prey/default.nix
···
cp -R . $out
cp -R ${modulesSrc}/* $out/modules/
wrapProgram "$out/prey.sh" \
-
--prefix PATH ":" "${xawtv}/bin:${imagemagick}/bin:${curl.bin}/bin:${scrot}/bin:${inetutils}/bin:${coreutils}/bin" \
+
--prefix PATH ":" "${xawtv}/bin:${imagemagick.out}/bin:${curl.bin}/bin:${scrot}/bin:${inetutils}/bin:${coreutils}/bin" \
--set CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt"
'';
+1 -1
pkgs/tools/typesetting/asciidoc/default.nix
···
sed -e "s|run('abc2ly|run('${lilypond}/bin/abc2ly|g" \
-e "s|run('lilypond|run('${lilypond}/bin/lilypond|g" \
-
-e "s|run('convert|run('${imagemagick}/bin/convert|g" \
+
-e "s|run('convert|run('${imagemagick.out}/bin/convert|g" \
-i "filters/music/music2png.py"
sed -e 's|filter="source-highlight|filter="${sourceHighlight}/bin/source-highlight|' \
+1 -1
pkgs/tools/typesetting/tex/dblatex/default.nix
···
-e 's|cmd = "inkscape|cmd = "${inkscape}/bin/inkscape|g' \
-e 's|cmd = "fig2dev|cmd = "${transfig}/bin/fig2dev|g' \
-e 's|cmd = \["ps2pdf|cmd = ["${ghostscript}/bin/ps2pdf|g' \
-
-e 's|cmd = "convert|cmd = "${imagemagick}/bin/convert|g' \
+
-e 's|cmd = "convert|cmd = "${imagemagick.out}/bin/convert|g' \
-i "$file"
done
'';
+1 -1
pkgs/top-level/perl-packages.nix
···
buildInputs = [ pkgs.imagemagick ];
preConfigure =
''
-
sed -i -e 's|my \$INC_magick = .*|my $INC_magick = "-I${pkgs.imagemagick}/include/ImageMagick";|' Makefile.PL
+
sed -i -e 's|my \$INC_magick = .*|my $INC_magick = "-I${pkgs.imagemagick.dev}/include/ImageMagick";|' Makefile.PL
'';
doCheck = false;
};