From f7edf63b23e25305fbe6c77d75a87fba7891beb5 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sat, 12 Dec 2015 10:57:38 -0600 Subject: [PATCH] ipe: use texlive-new --- pkgs/applications/graphics/ipe/default.nix | 17 ++++++++++------- pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/graphics/ipe/default.nix b/pkgs/applications/graphics/ipe/default.nix index 9f1f53abc5c4..c1c1861cd3d9 100644 --- a/pkgs/applications/graphics/ipe/default.nix +++ b/pkgs/applications/graphics/ipe/default.nix @@ -1,7 +1,8 @@ -{ stdenv, fetchurl, pkgconfig, zlib, freetype, cairo, lua5, texLive, ghostscriptX +{ stdenv, fetchurl, pkgconfig, zlib, freetype, cairo, lua5, texlive, ghostscript , libjpeg, qtbase -, makeWrapper }: -let ghostscript = ghostscriptX; in +, makeQtWrapper +}: + stdenv.mkDerivation rec { name = "ipe-7.1.10"; @@ -21,16 +22,18 @@ stdenv.mkDerivation rec { ''; IPEPREFIX="$$out"; - URWFONTDIR="${texLive}/texmf-dist/fonts/type1/urw/"; + URWFONTDIR="${texlive}/texmf-dist/fonts/type1/urw/"; LUA_PACKAGE = "lua"; buildInputs = [ - libjpeg pkgconfig zlib qtbase freetype cairo lua5 texLive ghostscript makeWrapper + libjpeg pkgconfig zlib qtbase freetype cairo lua5 texlive ghostscript ]; - postInstall = '' + nativeBuildInputs = [ makeQtWrapper ]; + + postFixup = '' for prog in $out/bin/*; do - wrapProgram "$prog" --prefix PATH : "${texLive}/bin" + wrapQtProgram "$prog" --prefix PATH : "${texlive}/bin" done ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 922ef1d676fb..6c021b858e24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12165,7 +12165,10 @@ let lua = lua5; }; - ipe = qt5Libs.callPackage ../applications/graphics/ipe { }; + ipe = qt5Libs.callPackage ../applications/graphics/ipe { + ghostscript = ghostscriptX; + texlive = texlive.combine { inherit (texlive) scheme-small; }; + }; iptraf = callPackage ../applications/networking/iptraf { };