diff --git a/pkgs/libIDL/libIDL-build.sh b/pkgs/libIDL/libIDL-build.sh new file mode 100755 index 00000000000..c59c5ae8e48 --- /dev/null +++ b/pkgs/libIDL/libIDL-build.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +export NIX_LDFLAGS=-Wl,-s + +. $stdenv/setup || exit 1 + +export PATH=$pkgconfig/bin:$PATH +envpkgs="$glib" +. $setenv || exit 1 + +tar xvfj $src || exit 1 +cd libIDL-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 +strip -S $out/lib/*.a || exit 1 + +echo $envpkgs > $out/envpkgs || exit 1 diff --git a/pkgs/libIDL/libIDL.fix b/pkgs/libIDL/libIDL.fix new file mode 100644 index 00000000000..78e4e0707de --- /dev/null +++ b/pkgs/libIDL/libIDL.fix @@ -0,0 +1,16 @@ +Package( + [ ("name", "libIDL-0.8.2") + + , ("build", Relative("libIDL/libIDL-build.sh")) + , ("setenv", Relative("helpers/set-env.sh")) + + , ("src", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/libIDL-0.8.2.tar.bz2") + , ("md5", "a75d2dbf3a3c66b567047c94245f8b82") + ])) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + , ("pkgconfig", IncludeFix("pkgconfig/pkgconfig.fix")) + , ("glib", IncludeFix("glib/glib.fix")) + ] +)