diff --git a/pkgs/applications/video/vlc/builder.sh b/pkgs/applications/video/vlc/builder.sh deleted file mode 100644 index e12aec4e5277..000000000000 --- a/pkgs/applications/video/vlc/builder.sh +++ /dev/null @@ -1,11 +0,0 @@ -buildinputs="$x11 $wxGTK $libdvdcss $libdvdread $libdvdplay $mpeg2dec $a52dec $libmad $alsa" -. $stdenv/setup || exit 1 - -tar xvfz $src || exit 1 -cd vlc-* || exit 1 -./configure --prefix=$out \ - --disable-ffmpeg \ - --enable-alsa \ - || exit 1 -make || exit 1 -make install || exit 1 diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix index 4b554fd6e23e..f4540a882f53 100644 --- a/pkgs/applications/video/vlc/default.nix +++ b/pkgs/applications/video/vlc/default.nix @@ -7,21 +7,17 @@ assert x11 != null && wxGTK != null && libdvdcss != null assert libdvdplay.libdvdread.libdvdcss == libdvdcss; stdenv.mkDerivation { - name = "vlc-0.7.0"; + name = "vlc-0.7.1"; - builder = ./builder.sh; src = fetchurl { - url = http://download.videolan.org/pub/videolan/vlc/0.7.0/vlc-0.7.0.tar.gz; - md5 = "05efef68528892ca933585c7db0842e3"; + url = http://download.videolan.org/pub/videolan/vlc/0.7.1/vlc-0.7.1.tar.gz; + md5 = "faa5e3162a3e9b3a3d8c3dcc06f70911"; }; - x11 = x11; - wxGTK = wxGTK; - libdvdcss = libdvdcss; - libdvdplay = libdvdplay; - libdvdread = libdvdplay.libdvdread; - mpeg2dec = mpeg2dec; - a52dec = a52dec; - libmad = libmad; - alsa = alsa; + buildInputs = [ + x11 wxGTK libdvdcss libdvdplay libdvdplay.libdvdread + mpeg2dec a52dec libmad alsa + ]; + + configureFlags = "--disable-ffmpeg --enable-alsa"; } diff --git a/pkgs/development/libraries/a52dec/builder.sh b/pkgs/development/libraries/a52dec/builder.sh deleted file mode 100644 index 1899153fa34b..000000000000 --- a/pkgs/development/libraries/a52dec/builder.sh +++ /dev/null @@ -1,8 +0,0 @@ -. $stdenv/setup || exit 1 - -tar xvfz $src || exit 1 -cd a52dec-* || exit 1 -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 -strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/a52dec/default.nix b/pkgs/development/libraries/a52dec/default.nix index 20692fafb26a..4a75e11ec304 100644 --- a/pkgs/development/libraries/a52dec/default.nix +++ b/pkgs/development/libraries/a52dec/default.nix @@ -1,6 +1,7 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { +{stdenv, fetchurl}: + +stdenv.mkDerivation { name = "a52dec-0.7.4"; - builder = ./builder.sh; src = fetchurl { url = http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz; md5 = "caa9f5bc44232dc8aeea773fea56be80"; diff --git a/pkgs/development/libraries/libdvdcss/builder.sh b/pkgs/development/libraries/libdvdcss/builder.sh deleted file mode 100644 index c7bd41840bb1..000000000000 --- a/pkgs/development/libraries/libdvdcss/builder.sh +++ /dev/null @@ -1,8 +0,0 @@ -. $stdenv/setup || exit 1 - -tar xvfz $src || exit 1 -cd libdvdcss-* || exit 1 -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 -strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/libdvdcss/default.nix b/pkgs/development/libraries/libdvdcss/default.nix index fe51ca0bb1f3..c26344729642 100644 --- a/pkgs/development/libraries/libdvdcss/default.nix +++ b/pkgs/development/libraries/libdvdcss/default.nix @@ -1,6 +1,7 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { +{stdenv, fetchurl}: + +stdenv.mkDerivation { name = "libdvdcss-1.2.8"; - builder = ./builder.sh; src = fetchurl { url = http://www.videolan.org/pub/videolan/vlc/0.6.2/contrib/libdvdcss-1.2.8.tar.gz; md5 = "e35e4240b6ca0b66a0218065dffe6adb"; diff --git a/pkgs/development/libraries/libdvdplay/builder.sh b/pkgs/development/libraries/libdvdplay/builder.sh deleted file mode 100644 index 686288592b3c..000000000000 --- a/pkgs/development/libraries/libdvdplay/builder.sh +++ /dev/null @@ -1,9 +0,0 @@ -buildinputs="$libdvdread" -. $stdenv/setup || exit 1 - -tar xvfj $src || exit 1 -cd libdvdplay-* || exit 1 -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 -strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/libdvdplay/default.nix b/pkgs/development/libraries/libdvdplay/default.nix index 820d9df2f8a4..09a7f785be32 100644 --- a/pkgs/development/libraries/libdvdplay/default.nix +++ b/pkgs/development/libraries/libdvdplay/default.nix @@ -4,10 +4,10 @@ assert libdvdread != null; stdenv.mkDerivation { name = "libdvdplay-1.0.1"; - builder = ./builder.sh; src = fetchurl { url = http://www.videolan.org/pub/libdvdplay/1.0.1/libdvdplay-1.0.1.tar.bz2; md5 = "602bca4ef78d79aa87e5e8920d958a78"; }; - libdvdread = libdvdread; + buildInputs = [libdvdread]; + inherit libdvdread; } diff --git a/pkgs/development/libraries/libdvdread/builder.sh b/pkgs/development/libraries/libdvdread/builder.sh index 1581116ce53f..9173ce1b205e 100644 --- a/pkgs/development/libraries/libdvdread/builder.sh +++ b/pkgs/development/libraries/libdvdread/builder.sh @@ -1,9 +1,5 @@ -buildinputs="$libdvdcss" -. $stdenv/setup || exit 1 +. $stdenv/setup -tar xvfj $src || exit 1 -cd libdvdread-* || exit 1 -./configure --prefix=$out --with-libdvdcss="$libdvdcss" || exit 1 -make || exit 1 -make install || exit 1 -strip -S $out/lib/*.a || exit 1 +configureFlags="--with-libdvdcss=$libdvdcss" + +genericBuild diff --git a/pkgs/development/libraries/libdvdread/default.nix b/pkgs/development/libraries/libdvdread/default.nix index 926180384d1e..de6fc15368ca 100644 --- a/pkgs/development/libraries/libdvdread/default.nix +++ b/pkgs/development/libraries/libdvdread/default.nix @@ -9,5 +9,6 @@ stdenv.mkDerivation { url = http://www.videolan.org/pub/videolan/vlc/0.6.2/contrib/libdvdread-20030812.tar.bz2; md5 = "9d58beac7c2dfb98d00f4ed0ea3d7274"; }; - libdvdcss = libdvdcss; + buildInputs = libdvdcss; + inherit libdvdcss; } diff --git a/pkgs/development/libraries/libmad/builder.sh b/pkgs/development/libraries/libmad/builder.sh deleted file mode 100644 index b6a916f74b64..000000000000 --- a/pkgs/development/libraries/libmad/builder.sh +++ /dev/null @@ -1,8 +0,0 @@ -. $stdenv/setup || exit 1 - -tar xvfz $src || exit 1 -cd libmad-* || exit 1 -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 -strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/libmad/default.nix b/pkgs/development/libraries/libmad/default.nix index a7441fbe6f22..7e5a93f229ac 100644 --- a/pkgs/development/libraries/libmad/default.nix +++ b/pkgs/development/libraries/libmad/default.nix @@ -1,6 +1,7 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { +{stdenv, fetchurl}: + +stdenv.mkDerivation { name = "libmad-0.15.0b"; - builder = ./builder.sh; src = fetchurl { url = http://heanet.dl.sourceforge.net/sourceforge/mad/libmad-0.15.0b.tar.gz; md5 = "2e4487cdf922a6da2546bad74f643205"; diff --git a/pkgs/development/libraries/mpeg2dec/builder.sh b/pkgs/development/libraries/mpeg2dec/builder.sh deleted file mode 100644 index 6dc6a220e924..000000000000 --- a/pkgs/development/libraries/mpeg2dec/builder.sh +++ /dev/null @@ -1,8 +0,0 @@ -. $stdenv/setup || exit 1 - -tar xvfz $src || exit 1 -cd mpeg2dec-* || exit 1 -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 -strip -S $out/lib/*.a || exit 1 diff --git a/pkgs/development/libraries/mpeg2dec/default.nix b/pkgs/development/libraries/mpeg2dec/default.nix index a57314a3fddd..bc31f0731dec 100644 --- a/pkgs/development/libraries/mpeg2dec/default.nix +++ b/pkgs/development/libraries/mpeg2dec/default.nix @@ -1,8 +1,9 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { - name = "mpeg2dec-20030612"; - builder = ./builder.sh; +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "mpeg2dec-0.4.0b"; src = fetchurl { - url = http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.0.tar.gz; - md5 = "49a70fef1b0f710ed7e64ed32ee82d4d"; + url = http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.0b.tar.gz; + md5 = "52d10ea80595ec83d8557ba7ac6dc8e6"; }; } diff --git a/pkgs/development/libraries/wxGTK/builder.sh b/pkgs/development/libraries/wxGTK/builder.sh deleted file mode 100644 index d2b0880add93..000000000000 --- a/pkgs/development/libraries/wxGTK/builder.sh +++ /dev/null @@ -1,13 +0,0 @@ -buildinputs="$pkgconfig $gtk $libtiff $libjpeg $libpng $zlib" -. $stdenv/setup - -extraflags= -if test -z "$compat22"; then - extraflags="--disable-compat22 $extraflags" -fi - -tar xvfj $src -cd wxGTK-* -./configure --prefix=$out --enable-gtk2 $extraflags -make -make install diff --git a/pkgs/development/libraries/wxGTK/default.nix b/pkgs/development/libraries/wxGTK/default.nix index 27bfcf2ebff9..a30aaa1b81d9 100644 --- a/pkgs/development/libraries/wxGTK/default.nix +++ b/pkgs/development/libraries/wxGTK/default.nix @@ -9,15 +9,17 @@ assert gtk.libpng.zlib != null; stdenv.mkDerivation { name = "wxGTK-2.4.2"; - builder = ./builder.sh; src = fetchurl { url = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.4.2.tar.bz2; md5 = "cdadfe82fc93f8a65a2ae18a95b0b0e3"; }; - libtiff = gtk.libtiff; - libjpeg = gtk.libjpeg; - libpng = gtk.libpng; - zlib = gtk.libpng.zlib; - inherit pkgconfig gtk compat22; + buildinputs = [pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib]; + + configureFlags = [ + "--enable-gtk2" + (if compat22 then "--enable-compat22" else "--disable-compat22") + ]; + + inherit gtk compat22; } diff --git a/pkgs/development/python-modules/wxPython/builder.sh b/pkgs/development/python-modules/wxPython/builder.sh index 3e36d3f40453..724ddd2e2390 100644 --- a/pkgs/development/python-modules/wxPython/builder.sh +++ b/pkgs/development/python-modules/wxPython/builder.sh @@ -1,6 +1,20 @@ -buildinputs="$wxGTK $python $pkgconfig $gtk" . $stdenv/setup -tar xvfz $src -cd wxPythonSrc-*/wxPython -python setup.py WXPORT=gtk2 BUILD_GLCANVAS=0 BUILD_OGL=0 build install --prefix=$out +flags="WXPORT=gtk2 BUILD_GLCANVAS=0 BUILD_OGL=0" + +configurePhase() { + cd wxPython +} +configurePhase=configurePhase + +buildPhase() { + python setup.py $flags build +} +buildPhase=buildPhase + +installPhase() { + python setup.py $flags install --prefix=$out +} +installPhase=installPhase + +genericBuild \ No newline at end of file diff --git a/pkgs/development/python-modules/wxPython/default.nix b/pkgs/development/python-modules/wxPython/default.nix index 65dda5e5671d..c4844568a3f7 100644 --- a/pkgs/development/python-modules/wxPython/default.nix +++ b/pkgs/development/python-modules/wxPython/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, wxGTK, python}: +{stdenv, fetchurl, pkgconfig, wxGTK, python}: assert wxGTK.compat22; @@ -9,7 +9,6 @@ stdenv.mkDerivation { url = http://heanet.dl.sourceforge.net/sourceforge/wxpython/wxPythonSrc-2.4.2.4.tar.gz; md5 = "ea4eb68e10a0c2a9be643b35dcb78e41"; }; - pkgconfig = wxGTK.pkgconfig; - gtk = wxGTK.gtk; - inherit wxGTK python; -} + buildInputs = [pkgconfig wxGTK (wxGTK.gtk) python]; + inherit wxGTK; # !!! move this down +} // { inherit python; } diff --git a/pkgs/os-specific/linux/alsa/library/builder.sh b/pkgs/os-specific/linux/alsa/library/builder.sh deleted file mode 100644 index eabae65a3c8d..000000000000 --- a/pkgs/os-specific/linux/alsa/library/builder.sh +++ /dev/null @@ -1,7 +0,0 @@ -. $stdenv/setup || exit 1 - -tar xvfj $src || exit 1 -cd alsa-* || exit 1 -./configure --prefix=$out || exit 1 -make || exit 1 -make install || exit 1 diff --git a/pkgs/os-specific/linux/alsa/library/default.nix b/pkgs/os-specific/linux/alsa/library/default.nix index 02e3b1d49c73..ffbc9b4089ca 100644 --- a/pkgs/os-specific/linux/alsa/library/default.nix +++ b/pkgs/os-specific/linux/alsa/library/default.nix @@ -1,8 +1,9 @@ -{stdenv, fetchurl}: stdenv.mkDerivation { - name = "alsa-lib-0.9.8"; - builder = ./builder.sh; +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "alsa-lib-1.0.3b"; src = fetchurl { - url = ftp://ftp.alsa-project.org/pub/lib/alsa-lib-0.9.8.tar.bz2; - md5 = "c9f163fb0623de1b92bf287712641f6e"; + url = ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.3b.tar.bz2; + md5 = "8ade68f0e9d44a039a741052985a8635"; }; } diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 8ce50c8e1b3c..1da3a33366a0 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -479,11 +479,7 @@ rec { }; wxGTK = (import ../development/libraries/wxGTK) { - inherit fetchurl stdenv; - fetchurl = fetchurl; - stdenv = stdenv; - pkgconfig = pkgconfig; - gtk = gtk; + inherit fetchurl stdenv pkgconfig gtk; }; gnet = (import ../development/libraries/gnet) { @@ -605,7 +601,7 @@ rec { }; wxPython = (import ../development/python-modules/wxPython) { - inherit fetchurl stdenv wxGTK python; + inherit fetchurl stdenv pkgconfig wxGTK python; }; diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix index ba135ab9289e..8f7011384b97 100644 --- a/pkgs/system/populate-cache.nix +++ b/pkgs/system/populate-cache.nix @@ -45,7 +45,7 @@ let { pkgs.MPlayer pkgs.MPlayerPlugin # pkgs.vlc - pkgs.zapping +# pkgs.zapping pkgs.gqview pkgs.hello pkgs.nxml