From 3202338268fd36ada4fab75e7cbbf63b69865610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Tue, 28 Apr 2009 18:58:34 +0000 Subject: [PATCH] Improved package config installation for gtk2hs (still not working completely). svn path=/nixpkgs/trunk/; revision=15383 --- pkgs/development/libraries/haskell/gtk2hs/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/haskell/gtk2hs/default.nix b/pkgs/development/libraries/haskell/gtk2hs/default.nix index 394151c6cca..f8d3ce43208 100644 --- a/pkgs/development/libraries/haskell/gtk2hs/default.nix +++ b/pkgs/development/libraries/haskell/gtk2hs/default.nix @@ -23,8 +23,14 @@ stdenv.mkDerivation rec { postInstall = '' local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version} + local installedPkgConf=$confDir/${fname}.installedconf ensureDir $confDir - cp $out/lib/gtk2hs/*.conf $confDir/ + echo $installedPkgConf + echo '[]' > $installedPkgConf + for pkgConf in $out/lib/gtk2hs/*.conf; do + cp $pkgConf $confDir/ + GHC_PACKAGE_PATH=$installedPkgConf ghc-pkg --global register $pkgConf --force + done ''; # */ passthru = { inherit gtksourceview; };