Improved package config installation for gtk2hs (still not working completely).
svn path=/nixpkgs/trunk/; revision=15383
This commit is contained in:
parent
cd9c9a2431
commit
3202338268
@ -23,8 +23,14 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall =
|
postInstall =
|
||||||
''
|
''
|
||||||
local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
|
local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
|
||||||
|
local installedPkgConf=$confDir/${fname}.installedconf
|
||||||
ensureDir $confDir
|
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; };
|
passthru = { inherit gtksourceview; };
|
||||||
|
Loading…
Reference in New Issue
Block a user