mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
* added binary, a serialisation package for Haskell
svn path=/nixpkgs/trunk/; revision=10207
This commit is contained in:
parent
4e975c04d6
commit
9758a20f67
41
pkgs/development/libraries/haskell/binary/default.nix
Normal file
41
pkgs/development/libraries/haskell/binary/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{stdenv, fetchurl, ghc}:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
|
||||
pname = "binary";
|
||||
version = "0.4.1";
|
||||
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://hackage.haskell.org/packages/archive/${pname}/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "bb74824306843da25f6d97c271e2a06ee3a7e05fc529156fb81d7c576688e549";
|
||||
};
|
||||
|
||||
buildInputs = [ghc];
|
||||
|
||||
meta = {
|
||||
description = "Efficient, pure binary serialisation using lazy ByteStrings";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
ghc --make Setup.lhs
|
||||
./Setup configure --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
|
||||
'';
|
||||
|
||||
})
|
|
@ -2603,6 +2603,11 @@ rec {
|
|||
|
||||
### DEVELOPMENT / LIBRARIES / HASKELL
|
||||
|
||||
binary = import ../development/libraries/haskell/binary {
|
||||
inherit stdenv fetchurl;
|
||||
ghc = ghc68;
|
||||
};
|
||||
|
||||
gtk2hs = import ../development/libraries/haskell/gtk2hs {
|
||||
inherit pkgconfig stdenv fetchurl cairo;
|
||||
inherit (gnome) gtk glib GConf libglade libgtkhtml gtkhtml;
|
||||
|
|
Loading…
Reference in a new issue