diff options
author | Andres Löh <mail@andres-loeh.de> | 2008-01-19 16:42:42 +0000 |
---|---|---|
committer | Andres Löh <mail@andres-loeh.de> | 2008-01-19 16:42:42 +0000 |
commit | d223784b0ed2626b04469e1c06b668a569bf9acb (patch) | |
tree | ef95a26293442516cfb9cc04a18c2c81afb77ed6 /pkgs/development/libraries | |
parent | 12ea9ddea2f1ef53403a24cf4c9740e640b6e126 (diff) | |
download | nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.tar nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.tar.gz nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.tar.bz2 nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.tar.lz nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.tar.xz nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.tar.zst nixpkgs-d223784b0ed2626b04469e1c06b668a569bf9acb.zip |
* added vty package for ghc
svn path=/nixpkgs/trunk/; revision=10228
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/haskell/vty/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/haskell/vty/default.nix b/pkgs/development/libraries/haskell/vty/default.nix new file mode 100644 index 00000000000..ff0f66c2692 --- /dev/null +++ b/pkgs/development/libraries/haskell/vty/default.nix @@ -0,0 +1,42 @@ +{stdenv, fetchurl, ghc}: + +stdenv.mkDerivation (rec { + + pname = "vty"; + version = "3.0.0"; + + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://hackage.haskell.org/packages/archive/${pname}/${version}/${name}.tar.gz"; + sha256 = "44ae53d06b8b45c14cd3861e860a38730ed9995ed56b1b3d9aba6641771f1947"; + }; + + buildInputs = [ghc]; + + meta = { + description = "vty is a *very* simplistic library in the niche of ncurses"; + }; + + configurePhase = '' + sed -i 's|^Build-Depends:.*$|&, bytestring, containers|' ${pname}.cabal + ghc --make Setup.lhs + ./Setup configure -v --prefix="$out" + ''; + + buildPhase = '' + ./Setup build + ''; + + installPhase = '' + ./Setup copy + ./Setup register --gen-script + mkdir $out/nix-support + sed -i 's/|.*\(ghc-pkg update\)/| \1/' register.sh + cp register.sh $out/nix-support/register-ghclib.sh + sed -i 's/\(ghc-pkg update\)/\1 --user/' register.sh + mkdir $out/bin + cp register.sh $out/bin/register-ghclib-${name}.sh + ''; + +}) |