fix sourceWithTagsDerivation, myhasktags now based on current haskell derivations
svn path=/nixpkgs/trunk/; revision=16263
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{fetchurl, stdenv, ghcReal} :
|
||||
|
||||
/* use case:
|
||||
|
||||
packageOverrides = {
|
||||
|
||||
haskellCollection =
|
||||
let hp = haskellPackages;
|
||||
install = [ hp.QuickCheck /* ... * /];
|
||||
in
|
||||
misc.collection {
|
||||
name = "my-haskell-packages-collection";
|
||||
list = install ++ (map (x : sourceWithTagsDerivation (sourceWithTagsFromDerivation (addHasktagsTaggingInfo x) ))
|
||||
(lib.filter (x : builtins.hasAttr "src" x) install ) );
|
||||
};
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "hasktags-modified";
|
||||
version = "0.0"; # Haskell Platform 2009.0.0
|
||||
src = fetchurl {
|
||||
url = http://mawercer.de/~nix/hasktags.hs;
|
||||
sha256 = "c68ece10a47fdab0ecab2865582ba49299d5d1acd26db95fe0dc7926e36eb1c1";
|
||||
};
|
||||
phases="buildPhase";
|
||||
buildPhase = ''
|
||||
ensureDir $out/bin
|
||||
ghc --make $src -o $out/bin/hasktags-modified
|
||||
'';
|
||||
buildInputs = [ ghcReal ];
|
||||
|
||||
meta = {
|
||||
description = "my patched version of hasktags. Should be merged into hasktags?";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user