diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-02-12 16:24:02 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-02-12 16:24:02 +0000 |
commit | 260c0c9c9678e164a42c5bfd6cb18cd143f32c0b (patch) | |
tree | 67f4d50103abd8206161f74e74823f4b0d62f45e /pkgs/development/compilers/ghc | |
parent | 2fbd55bb6b5f9fb1d906b60889936e42b1b18ba0 (diff) | |
download | nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.tar nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.tar.gz nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.tar.bz2 nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.tar.lz nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.tar.xz nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.tar.zst nixlib-260c0c9c9678e164a42c5bfd6cb18cd143f32c0b.zip |
new version - annotated derivation proposal - used to install addtiontal /src
and /tag/ source code which to build up develop environments more easily ( TODO make this optional for ghcWrapper ) svn path=/nixpkgs/trunk/; revision=10648
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r-- | pkgs/development/compilers/ghc/createGhcWrapper/default.nix | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/createGhcWrapper/default.nix b/pkgs/development/compilers/ghc/createGhcWrapper/default.nix index 5eeb4d431908..4d6094f5d723 100644 --- a/pkgs/development/compilers/ghc/createGhcWrapper/default.nix +++ b/pkgs/development/compilers/ghc/createGhcWrapper/default.nix @@ -1,9 +1,15 @@ -args: with args; +args: with args; with lib; with annotatedDerivations; stdenv.mkDerivation { inherit suffix name ghc ; - buildInputs = libraries ++ [ghcPkgUtil]; + buildInputs = map delAnnotation (libraries ++ [ghcPkgUtil]); + #tags = if (installSourceAndTags == true) then + # map sourceWithTagsDerivation ( uniqList { inputList = + # ( filterAnnotated ( concatLists (map uniqAnnotatedDeps libraries ) ) ) ; } ) + # else []; + tags = map (x : sourceWithTagsDerivation (x.sourceWithTags)) + (uniqList { inputList= filter annotatedWithSourceAndTagInfo libraries; } ); phases="installPhase"; @@ -21,5 +27,12 @@ GHC_PACKAGE_PATH=\${GHC_PACKAGE_PATH}\${g} \$ghc/bin/$app \"\\\$@\" EOF chmod +x \"\$out/bin/\$a$suffix\" done + + ensureDir \$out/{src,tags} + for i in \$tags; do + for path in src tags; do + ln -s \$i/\$path/* \$out/\$path + done + done "; } |