summary refs log tree commit diff
path: root/pkgs/tools/misc/myhasktags/default.nix
blob: 3d00dfe54f4d1fe7202203232f34643e98e0dd02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{fetchurl, stdenv, ghcPlain} :

/* 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 = "e5ce4c4e1f5916baf9395174978faee67a86ff5350936c82e115939812a4d579";
  };
  phases="buildPhase";
  buildPhase = ''
    ensureDir $out/bin
    ghc --make $src -o $out/bin/hasktags-modified
  '';
  buildInputs = [ ghcPlain ];

  meta = {
    description = "my patched version of hasktags. Should be merged into hasktags?";
  };
}