added wxhaskell (wx,wxcore libs)
svn path=/nixpkgs/trunk/; revision=11246
This commit is contained in:
parent
2cf0055092
commit
df0825351f
@ -10,6 +10,9 @@ rec {
|
|||||||
# It merges derivations (defined below) and additional inputs. I hope that using as few nix functions as possible results in greates speed?
|
# It merges derivations (defined below) and additional inputs. I hope that using as few nix functions as possible results in greates speed?
|
||||||
# unfortunately with x; won't work because it forces nix to evaluate all attributes of x which would lead to infinite recursion
|
# unfortunately with x; won't work because it forces nix to evaluate all attributes of x which would lead to infinite recursion
|
||||||
pkgs = let x = ghc.core_libs // derivations;
|
pkgs = let x = ghc.core_libs // derivations;
|
||||||
|
wxVersion = "0.10.3";
|
||||||
|
wxSrc = fetchurl { url = "mirror://sourceforge/wxhaskell/wxhaskell-src-${wxVersion}.tar.gz";
|
||||||
|
sha256 = "0sjk7kzrlj0p6d6ijnw35s9qdyryb7kzvkrj0jhf12rhvjnvd5y0"; };
|
||||||
inherit (bleedingEdgeRepos) sourceByName;
|
inherit (bleedingEdgeRepos) sourceByName;
|
||||||
in {
|
in {
|
||||||
# ghc extra packages
|
# ghc extra packages
|
||||||
@ -25,6 +28,8 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
# other pacakges (hackage etc)
|
# other pacakges (hackage etc)
|
||||||
|
parsec3 = { name="parsec-3.0.0"; p_deps=[ x.base x.mtl x.bytestring ]; src = fetchurl { url = "http://hackage.haskell.org/packages/archive/parsec/3.0.0/parsec-3.0.0.tar.gz"; sha256 = "0fqryy09y8h7z0hlayg5gpavghgwa0g3bldynwl17ks8l87ykj7a"; }; };
|
||||||
|
|
||||||
binary = rec { name = "binary-0.4.1"; p_deps = [ x.base x.bytestring x.containers x.array ];
|
binary = rec { name = "binary-0.4.1"; p_deps = [ x.base x.bytestring x.containers x.array ];
|
||||||
src = fetchurl { url = "http://hackage.haskell.org/packages/archive/binary/0.4.1/binary-0.4.1.tar.gz";
|
src = fetchurl { url = "http://hackage.haskell.org/packages/archive/binary/0.4.1/binary-0.4.1.tar.gz";
|
||||||
sha256 = "0jg5i1k5fz0xp1piaaf5bzhagqvfl3i73hlpdmgs4gc40r1q4x5v"; };
|
sha256 = "0jg5i1k5fz0xp1piaaf5bzhagqvfl3i73hlpdmgs4gc40r1q4x5v"; };
|
||||||
@ -123,22 +128,37 @@ rec {
|
|||||||
";
|
";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#wxhaskell = rec { name = "wxhaskel-0.9.4-1"; p_deps = [ x.haskell98 x.mtl x.bytestring pkgconfig wxGTK ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]);
|
hspread = { name = "hspread-0.3"; p_deps = [ x.base x.bytestring x.network x.binary ];
|
||||||
# src = fetchurl {
|
src = fetchurl {
|
||||||
# url = "http://prdownloads.sourceforge.net/wxhaskell/wxhaskell-src-0.9.4-1.zip";
|
url = http://hackage.haskell.org/packages/archive/hspread/0.3/hspread-0.3.tar.gz;
|
||||||
# sha256 = "0x6mjly7fxkxgzcl9znhzhik4h88rc56zl8diw5ihf48dcvby8wl"; };
|
sha256 = "0lwq7v7p6akykcsz6inkg99h3z7ab1gs5nkjjlgsbyqbwvimmf5n"; };
|
||||||
# pass = {
|
pass = {
|
||||||
# buildInputs = [ unzip ];
|
};
|
||||||
# buildPhase = "
|
};
|
||||||
# createEmptyPackageDatabaseAndSetupHook
|
|
||||||
# export GHC_PACKAGE_PATH
|
wxcore = rec {
|
||||||
# ./configure --prefix=\$out --package-conf=\$PACKAGE_DB
|
|
||||||
# make
|
name = "wxhaskel-${wxVersion}"; p_deps = [ x.haskell98 x.mtl x.bytestring x.parsec pkgconfig wxGTK ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]);
|
||||||
# ensureDir \$out
|
src = wxSrc;
|
||||||
# make install
|
pass = {
|
||||||
# ";
|
buildInputs = [ unzip ];
|
||||||
# };
|
buildPhase = "
|
||||||
# };
|
createEmptyPackageDatabaseAndSetupHook
|
||||||
|
export GHC_PACKAGE_PATH
|
||||||
|
sed -e 's/which/type -p/g' configure
|
||||||
|
./configure --prefix=\$out --package-conf=\$PACKAGE_DB
|
||||||
|
make
|
||||||
|
ensureDir \$out
|
||||||
|
make install
|
||||||
|
";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
wx = { name="wx-${wxVersion}"; src =wxSrc; srcDir="wx"; p_deps = [ x.haskell98 x.mtl x.bytestring x.parsec x.wxcore pkgconfig wxGTK ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]);
|
||||||
|
pass = { patchPhase = "pwd; cp {,wx/}license.txt"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
askelldb-hsql-postgresql-0.10.tar.gz
|
askelldb-hsql-postgresql-0.10.tar.gz
|
||||||
|
@ -1371,7 +1371,7 @@ let pkgs = rec {
|
|||||||
inherit bleedingEdgeRepos fetchurl lib addHasktagsTaggingInfo ghcCabalDerivation pkgconfig unzip;
|
inherit bleedingEdgeRepos fetchurl lib addHasktagsTaggingInfo ghcCabalDerivation pkgconfig unzip;
|
||||||
# used (non haskell) libraries (ffi etc)
|
# used (non haskell) libraries (ffi etc)
|
||||||
inherit postgresql sqlite gtkLibs gnome;
|
inherit postgresql sqlite gtkLibs gnome;
|
||||||
wxGTK = wxGTK28;
|
wxGTK = wxGTK26;
|
||||||
};
|
};
|
||||||
|
|
||||||
# the wrappers basically does one thing: It defines GHC_PACKAGE_PATH before calling ghc{i,-pkg}
|
# the wrappers basically does one thing: It defines GHC_PACKAGE_PATH before calling ghc{i,-pkg}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user