diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-03-21 01:24:43 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-03-21 01:24:43 +0000 |
commit | 1061800db41d6b0f23bc9cbd357117ebedd8748a (patch) | |
tree | 8c9272702141cdfce65f7999644ee8001996b6bf /pkgs/development/tools/documentation | |
parent | f272e7780b10a3cadd1d30b50356011e538a9339 (diff) |
added hsc2hs (makes interfacing C -> haskell easier)
svn path=/nixpkgs/trunk/; revision=11248
Diffstat (limited to 'pkgs/development/tools/documentation')
-rw-r--r-- | pkgs/development/tools/documentation/hs2hs/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/tools/documentation/hs2hs/default.nix b/pkgs/development/tools/documentation/hs2hs/default.nix new file mode 100644 index 0000000000000..cfa9e3b56f692 --- /dev/null +++ b/pkgs/development/tools/documentation/hs2hs/default.nix @@ -0,0 +1,26 @@ +#TODO write a function (abstraction) +args: with args; +args.stdenv.mkDerivation { + name = "hsc2hs-darcs"; + + src = bleedingEdgeRepos.sourceByName "hsc2hs"; + + phases = "unpackPhase buildPhase"; + + buildPhase = '' + ghc --make Setup.*hs -o setup + ensureDir \out + nix_ghc_pkg_tool join local-pkg-db + ./setup configure --prefix=$out --package-db=local-pkg-db + ./setup build + ./setup install + ''; + + buildInputs = (with args; [ghc] ++ libs); + + meta = { + description = "automate some parts of the process of writing Haskell bindings to C code"; + homepage = http://www.flapjax-lang.org/; + license = "BSD3"; + }; +} |