mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
still a missing piece
svn path=/nixpkgs/trunk/; revision=11256
This commit is contained in:
parent
43172fcb6a
commit
3bcb0f794f
1 changed files with 26 additions and 0 deletions
26
pkgs/development/tools/misc/hsc2hs/default.nix
Normal file
26
pkgs/development/tools/misc/hsc2hs/default.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue