mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
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 =
|
||||
''
|
||||
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; };
|
||||
|
Loading…
Reference in New Issue
Block a user