From 21b8ff7aee05ce95c344afc4fede0c3dc8f5c17b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 3 Aug 2011 07:49:21 +0000 Subject: [PATCH] haskell-packages.nix: added bnfc version 2.4 svn path=/nixpkgs/trunk/; revision=28132 --- .../tools/haskell/bnfc/default.nix | 20 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/tools/haskell/bnfc/default.nix diff --git a/pkgs/development/tools/haskell/bnfc/default.nix b/pkgs/development/tools/haskell/bnfc/default.nix new file mode 100644 index 000000000000..7f7ba00c056e --- /dev/null +++ b/pkgs/development/tools/haskell/bnfc/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, ghc}: + +stdenv.mkDerivation { + name = "bnfc-2.4-beta1"; + + src = fetchurl { + url = "https://svn.spraakdata.gu.se/clt/release/bnfc_2.4_beta_1.tgz"; + sha256 = "1njnck3m6qpp0qw11v1chf6m217j8f85bsgjl7zcpb4py18mjjrx"; + }; + + buildInputs = [ghc]; + + preConfigure = "cd source"; + + meta = { + description = "Compiler construction tool generating a compiler front-end from a Labelled BNF grammar"; + platforms = stdenv.lib.platforms.haskellPlatforms; + maintainers = [ stdenv.lib.maintainers.simons ]; + }; +} diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index d4b6c08e4fea..1fc7d7898529 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -361,6 +361,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); bmp = callPackage ../development/libraries/haskell/bmp {}; + bnfc = callPackage ../development/tools/haskell/bnfc {}; + Boolean = callPackage ../development/libraries/haskell/Boolean {}; bytestringNums = callPackage ../development/libraries/haskell/bytestring-nums {};