diff --git a/pkgs/gettext/gettext-build.sh b/pkgs/gettext/gettext-build.sh new file mode 100755 index 000000000000..57f18bb3da15 --- /dev/null +++ b/pkgs/gettext/gettext-build.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd gettext-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs/gettext/gettext.fix b/pkgs/gettext/gettext.fix new file mode 100644 index 000000000000..825aa7f383d7 --- /dev/null +++ b/pkgs/gettext/gettext.fix @@ -0,0 +1,13 @@ +Package( + [ ("name", "gettext-0.12.1") + + , ("build", Relative("gettext/gettext-build.sh")) + + , ("src", App(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://ftp.nluug.nl/pub/gnu/gettext/gettext-0.12.1.tar.gz") + , ("md5", "5d4bddd300072315e668247e5b7d5bdb") + ])) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + ] +) diff --git a/pkgs/glib/glib-build.sh b/pkgs/glib/glib-build.sh index 1da5fb302388..b1df2d3700e0 100755 --- a/pkgs/glib/glib-build.sh +++ b/pkgs/glib/glib-build.sh @@ -1,7 +1,7 @@ #! /bin/sh . $stdenv/setup || exit 1 -export PATH=$pkgconfig/bin:$PATH +export PATH=$pkgconfig/bin:$gettext/bin:$PATH tar xvfj $src || exit 1 cd glib-* || exit 1 diff --git a/pkgs/glib/glib.fix b/pkgs/glib/glib.fix index 9af1337312c6..bb32927099b6 100644 --- a/pkgs/glib/glib.fix +++ b/pkgs/glib/glib.fix @@ -10,5 +10,6 @@ Package( , ("stdenv", IncludeFix("stdenv/stdenv.fix")) , ("pkgconfig", IncludeFix("pkgconfig/pkgconfig.fix")) + , ("gettext", IncludeFix("gettext/gettext.fix")) ] )