summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/alex/default.nix
blob: 00d414d56bde59318a1567a1228a850cd4455773 (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
{stdenv, fetchurl, ghc, perl}:

stdenv.mkDerivation {
  name = "alex-2.1.0";
  src = fetchurl {
    url = http://www.haskell.org/alex/dist/2.1.0/alex-2.1.0.tar.gz;
    sha1 = "37599b7be5249d639b3a5a3fdc61907dc4dad660";
  };
  buildInputs = [ghc perl];

  configurePhase = "
    ghc --make Setup.lhs
    ./Setup configure --prefix=\"\${out}\"
  ";

  buildPhase = "
    ./Setup build
  ";

  installPhase = "
    ./Setup install
  ";
}