Improved package config installation for gtk2hs (still not working completely).

svn path=/nixpkgs/trunk/; revision=15383
This commit is contained in:
Andres Löh 2009-04-28 18:58:34 +00:00
parent cd9c9a2431
commit 3202338268

View File

@ -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; };