From 97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Mon, 23 Dec 2013 23:21:43 +0800 Subject: [PATCH 01/78] gstreamer-0.10: move to gstreamer/legacy --- .../gstreamer/{ => legacy}/gnonlin/default.nix | 0 .../{ => legacy}/gst-ffmpeg/default.nix | 0 .../{ => legacy}/gst-plugins-bad/default.nix | 0 .../{ => legacy}/gst-plugins-base/default.nix | 0 .../{ => legacy}/gst-plugins-good/default.nix | 0 .../{ => legacy}/gst-plugins-good/v4l.patch | 0 .../{ => legacy}/gst-plugins-ugly/default.nix | 0 .../{ => legacy}/gst-python/default.nix | 0 .../{ => legacy}/gstreamer/default.nix | 0 .../{ => legacy}/gstreamer/setup-hook.sh | 0 .../{ => legacy}/qt-gstreamer/boost1.48.patch | 0 .../{ => legacy}/qt-gstreamer/default.nix | 0 pkgs/top-level/all-packages.nix | 18 +++++++++--------- 13 files changed, 9 insertions(+), 9 deletions(-) rename pkgs/development/libraries/gstreamer/{ => legacy}/gnonlin/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-ffmpeg/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-bad/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-base/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-good/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-good/v4l.patch (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-ugly/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-python/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gstreamer/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gstreamer/setup-hook.sh (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/qt-gstreamer/boost1.48.patch (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/qt-gstreamer/default.nix (100%) diff --git a/pkgs/development/libraries/gstreamer/gnonlin/default.nix b/pkgs/development/libraries/gstreamer/legacy/gnonlin/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gnonlin/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gnonlin/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-ffmpeg/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-ffmpeg/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-ffmpeg/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-ffmpeg/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-bad/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-bad/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-bad/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-bad/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-base/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-base/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-good/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-good/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-good/v4l.patch b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/v4l.patch similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-good/v4l.patch rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/v4l.patch diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-ugly/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-ugly/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-python/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-python/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-python/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-python/default.nix diff --git a/pkgs/development/libraries/gstreamer/gstreamer/default.nix b/pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gstreamer/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix diff --git a/pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh b/pkgs/development/libraries/gstreamer/legacy/gstreamer/setup-hook.sh similarity index 100% rename from pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh rename to pkgs/development/libraries/gstreamer/legacy/gstreamer/setup-hook.sh diff --git a/pkgs/development/libraries/gstreamer/qt-gstreamer/boost1.48.patch b/pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/boost1.48.patch similarity index 100% rename from pkgs/development/libraries/gstreamer/qt-gstreamer/boost1.48.patch rename to pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/boost1.48.patch diff --git a/pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix b/pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix rename to pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/default.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 298944cdd05cd..51deb230dc066 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4408,29 +4408,29 @@ let gstFfmpeg = pkgs.gst_ffmpeg; }; - gstreamer = callPackage ../development/libraries/gstreamer/gstreamer {}; + gstreamer = callPackage ../development/libraries/gstreamer/legacy/gstreamer {}; - gst_plugins_base = callPackage ../development/libraries/gstreamer/gst-plugins-base {}; + gst_plugins_base = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-base {}; - gst_plugins_good = callPackage ../development/libraries/gstreamer/gst-plugins-good {}; + gst_plugins_good = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-good {}; - gst_plugins_bad = callPackage ../development/libraries/gstreamer/gst-plugins-bad {}; + gst_plugins_bad = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-bad {}; - gst_plugins_ugly = callPackage ../development/libraries/gstreamer/gst-plugins-ugly {}; + gst_plugins_ugly = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-ugly {}; - gst_ffmpeg = callPackage ../development/libraries/gstreamer/gst-ffmpeg { + gst_ffmpeg = callPackage ../development/libraries/gstreamer/legacy/gst-ffmpeg { ffmpeg = ffmpeg_0_10; }; - gst_python = callPackage ../development/libraries/gstreamer/gst-python {}; + gst_python = callPackage ../development/libraries/gstreamer/legacy/gst-python {}; - gnonlin = callPackage ../development/libraries/gstreamer/gnonlin {}; + gnonlin = callPackage ../development/libraries/gstreamer/legacy/gnonlin {}; gusb = callPackage ../development/libraries/gusb { inherit (gnome) gtkdoc; }; - qt_gstreamer = callPackage ../development/libraries/gstreamer/qt-gstreamer {}; + qt_gstreamer = callPackage ../development/libraries/gstreamer/legacy/qt-gstreamer {}; gnet = callPackage ../development/libraries/gnet { }; From 7a74215face789c9e8b287373f9155840122a236 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Mon, 23 Dec 2013 23:36:37 +0800 Subject: [PATCH 02/78] add gstreamer 1.2.1 --- .../libraries/gstreamer/bad/default.nix | 33 +++++++++++++++++++ .../libraries/gstreamer/base/default.nix | 31 +++++++++++++++++ .../libraries/gstreamer/core/default.nix | 25 ++++++++++++++ .../libraries/gstreamer/default.nix | 15 +++++++++ .../libraries/gstreamer/good/default.nix | 32 ++++++++++++++++++ .../libraries/gstreamer/libav/default.nix | 24 ++++++++++++++ .../libraries/gstreamer/ugly/default.nix | 28 ++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 8 files changed, 190 insertions(+) create mode 100644 pkgs/development/libraries/gstreamer/bad/default.nix create mode 100644 pkgs/development/libraries/gstreamer/base/default.nix create mode 100644 pkgs/development/libraries/gstreamer/core/default.nix create mode 100644 pkgs/development/libraries/gstreamer/default.nix create mode 100644 pkgs/development/libraries/gstreamer/good/default.nix create mode 100644 pkgs/development/libraries/gstreamer/libav/default.nix create mode 100644 pkgs/development/libraries/gstreamer/ugly/default.nix diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix new file mode 100644 index 0000000000000..02f1cf89a5fda --- /dev/null +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc +, faac, faad2, libass, libkate, libmms +, libmodplug, mpeg2dec, mpg123 +, openjpeg, libopus, librsvg +, timidity, libvdpau, wayland +, libwebp, xvidcore +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-bad-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz"; + sha256 = "f33e7c81fcb742fe50b73ad87ef8a4baa7d6b59c5002a10bf63c8dee22404929"; + }; + + nativeBuildInputs = [ pkgconfig python ]; + + buildInputs = [ + gst-plugins-base orc + faac faad2 libass libkate libmms + libmodplug mpeg2dec mpg123 + openjpeg libopus librsvg + timidity libvdpau wayland + libwebp xvidcore + ]; +} diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix new file mode 100644 index 0000000000000..fa5e7696c1ac0 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection +, orc, alsaLib, libXv, pango, libtheora +, cdparanoia, libvisual +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-base-1.2.1"; + + meta = { + description = "Base plugins and helper libraries"; + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"; + sha256 = "de2444a5c150d4e4b680364d7c0414cd8b015d95b305ff65d65a17683379532f"; + }; + + nativeBuildInputs = [ + pkgconfig python gobjectIntrospection + ]; + + buildInputs = [ + orc alsaLib libXv pango libtheora + cdparanoia libvisual + ]; + + propagatedBuildInputs = [ gstreamer ]; +} diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix new file mode 100644 index 0000000000000..6c33b91d6ee67 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection +, glib +}: + +stdenv.mkDerivation rec { + name = "gstreamer-1.2.1"; + + meta = { + description = "Open source multimedia framework"; + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gstreamer/${name}.tar.xz"; + sha256 = "a4523d2471bca6cd0059a32e3b042f50faa4dadc6439852af8b43ca3f17d1fc9"; + }; + + nativeBuildInputs = [ + pkgconfig perl bison flex python gobjectIntrospection + ]; + + propagatedBuildInputs = [ glib ]; +} diff --git a/pkgs/development/libraries/gstreamer/default.nix b/pkgs/development/libraries/gstreamer/default.nix new file mode 100644 index 0000000000000..1d02e6459ab24 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/default.nix @@ -0,0 +1,15 @@ +{ callPackage }: + +rec { + gstreamer = callPackage ./core { }; + + gst-plugins-base = callPackage ./base { inherit gstreamer; }; + + gst-plugins-good = callPackage ./good { inherit gst-plugins-base; }; + + gst-plugins-bad = callPackage ./bad { inherit gst-plugins-base; }; + + gst-plugins-ugly = callPackage ./ugly { inherit gst-plugins-base; }; + + gst-libav = callPackage ./libav { inherit gst-plugins-base; }; +} diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix new file mode 100644 index 0000000000000..75af280b0afc5 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, pkgconfig, python +, gst-plugins-base, orc, bzip2 +, libv4l, libdv, libavc1394, libiec61883 +, libvpx, speex, flac, taglib +, cairo, gdk_pixbuf, aalib, libcaca +, libsoup, pulseaudio +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-good-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz"; + sha256 = "660fa02dbe01086fcf702d87acc0ba5dde2559d6a11ecf438874afe504c50517"; + }; + + nativeBuildInputs = [ pkgconfig python ]; + + buildInputs = [ + gst-plugins-base orc bzip2 + libv4l libdv libavc1394 libiec61883 + libvpx speex flac taglib + cairo gdk_pixbuf aalib libcaca + libsoup pulseaudio + ]; +} diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix new file mode 100644 index 0000000000000..72556d968029b --- /dev/null +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, pkgconfig, python, yasm +, gst-plugins-base, bzip2 +}: + +stdenv.mkDerivation rec { + name = "gst-libav-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-libav/${name}.tar.xz"; + sha256 = "fd152b7aec56ae76ad58b9759913a8bfe1792bdf64f260d0acaba75b75076676"; + }; + + nativeBuildInputs = [ pkgconfig python yasm ]; + + buildInputs = [ + gst-plugins-base bzip2 + ]; +} diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix new file mode 100644 index 0000000000000..60bf519a76c79 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, pkgconfig, python +, gst-plugins-base, orc +, a52dec, libcdio, libdvdread +, lame, libmad, libmpeg2, x264 +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-ugly-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz"; + sha256 = "35ae5d45de54827604e24f57f54ab30a5ab2245b4c4120977273eb11d19c2395"; + }; + + nativeBuildInputs = [ pkgconfig python ]; + + buildInputs = [ + gst-plugins-base orc + a52dec libcdio libdvdread + lame libmad libmpeg2 x264 + ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51deb230dc066..81fd038ff4638 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4399,6 +4399,8 @@ let mpfr = callPackage ../development/libraries/mpfr { }; mpfr_3_1_2 = callPackage ../development/libraries/mpfr/3.1.2.nix { }; + gst_all_1 = callPackage ../development/libraries/gstreamer { }; + gst_all = { inherit (pkgs) gstreamer gnonlin gst_python qt_gstreamer; gstPluginsBase = pkgs.gst_plugins_base; From 0596f3074bb27f1473b3a2b0492ce9143fc308c8 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Tue, 24 Dec 2013 12:43:57 +0800 Subject: [PATCH 03/78] add parole 0.5.4 --- pkgs/desktops/xfce/applications/parole.nix | 43 ++++++++++++++++++++++ pkgs/desktops/xfce/default.nix | 1 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/desktops/xfce/applications/parole.nix diff --git a/pkgs/desktops/xfce/applications/parole.nix b/pkgs/desktops/xfce/applications/parole.nix new file mode 100644 index 0000000000000..c1a4ecd787d86 --- /dev/null +++ b/pkgs/desktops/xfce/applications/parole.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, makeWrapper, pkgconfig, intltool, gst_all_1 +, gtk, dbus_glib, libxfce4ui, libxfce4util, xfconf +, taglib, libnotify +, withGstPlugins ? true +}: + +stdenv.mkDerivation rec { + p_name = "parole"; + ver_maj = "0.5"; + ver_min = "4"; + + src = fetchurl { + url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2"; + sha256 = "1hxzqg9dfghrhvmnnccwwa4278fh2awkcqy89sla05m08mxvvx60"; + }; + name = "${p_name}-${ver_maj}.${ver_min}"; + + nativeBuildInputs = [ pkgconfig intltool ]; + + buildInputs = [ + makeWrapper gst_all_1.gst-plugins-base + gtk dbus_glib libxfce4ui libxfce4util xfconf + taglib libnotify + ]; + + configureFlags = [ "--with-gstreamer=1.0" ]; + + postInstall = stdenv.lib.optionalString withGstPlugins '' + wrapProgram "$out/bin/parole" --prefix \ + GST_PLUGIN_PATH ":" ${stdenv.lib.concatStringsSep ":" + (map (s: s+"/lib/gstreamer-1.0") (with gst_all_1; [ + gst-plugins-base gst-plugins-good + gst-plugins-bad gst-plugins-ugly + gst-libav + ])) } + ''; + + meta = { + homepage = "http://goodies.xfce.org/projects/applications/${p_name}"; + description = "Modern simple media player"; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index ede7ffb6c49cb..b9c84cf95e280 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -41,6 +41,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od gigolo = callPackage ./applications/gigolo.nix { }; mousepad = callPackage ./applications/mousepad.nix { }; + parole = callPackage ./applications/parole.nix { }; ristretto = callPackage ./applications/ristretto.nix { }; terminal = xfce4terminal; # it has changed its name xfce4mixer = callPackage ./applications/xfce4-mixer.nix { }; From 9a3e183080e0dee9ad9b4d55ddc4aaffba395436 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Thu, 2 Jan 2014 10:33:36 +0800 Subject: [PATCH 04/78] gstreamer: update to 1.2.2, add myself as maintainer --- pkgs/development/libraries/gstreamer/bad/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/base/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/core/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/good/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/libav/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/ugly/default.nix | 5 +++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index 02f1cf89a5fda..f05408767a742 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -7,17 +7,18 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-bad-1.2.1"; + name = "gst-plugins-bad-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.gpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz"; - sha256 = "f33e7c81fcb742fe50b73ad87ef8a4baa7d6b59c5002a10bf63c8dee22404929"; + sha256 = "63e78db11b482d0529a0bde01e2ac23fd32c7cb99a5508b53ee4ca1051871b2c"; }; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix index fa5e7696c1ac0..01a75ce52112f 100644 --- a/pkgs/development/libraries/gstreamer/base/default.nix +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -4,18 +4,19 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-base-1.2.1"; + name = "gst-plugins-base-1.2.2"; meta = { description = "Base plugins and helper libraries"; homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"; - sha256 = "de2444a5c150d4e4b680364d7c0414cd8b015d95b305ff65d65a17683379532f"; + sha256 = "fa90cf21eac0a77f9393100356aef99ae42072c31dc218d3ae2e7f86cd5ced69"; }; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 6c33b91d6ee67..5e7548627fe20 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -3,18 +3,19 @@ }: stdenv.mkDerivation rec { - name = "gstreamer-1.2.1"; + name = "gstreamer-1.2.2"; meta = { description = "Open source multimedia framework"; homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gstreamer/${name}.tar.xz"; - sha256 = "a4523d2471bca6cd0059a32e3b042f50faa4dadc6439852af8b43ca3f17d1fc9"; + sha256 = "b9f12137ab663edc6c37429b38ca7911074b9c2a829267fe855d4e57d916a0b6"; }; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix index 75af280b0afc5..616f63d7da7fe 100644 --- a/pkgs/development/libraries/gstreamer/good/default.nix +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -7,17 +7,18 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-good-1.2.1"; + name = "gst-plugins-good-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.gpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz"; - sha256 = "660fa02dbe01086fcf702d87acc0ba5dde2559d6a11ecf438874afe504c50517"; + sha256 = "6c090f00e8e4588f12807bd9fbb06a03b84a512c93e84d928123ee4a42228a81"; }; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index 72556d968029b..9560582278772 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -3,17 +3,18 @@ }: stdenv.mkDerivation rec { - name = "gst-libav-1.2.1"; + name = "gst-libav-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-libav/${name}.tar.xz"; - sha256 = "fd152b7aec56ae76ad58b9759913a8bfe1792bdf64f260d0acaba75b75076676"; + sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418"; }; nativeBuildInputs = [ pkgconfig python yasm ]; diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix index 60bf519a76c79..8dafbf013f376 100644 --- a/pkgs/development/libraries/gstreamer/ugly/default.nix +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -5,17 +5,18 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-ugly-1.2.1"; + name = "gst-plugins-ugly-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz"; - sha256 = "35ae5d45de54827604e24f57f54ab30a5ab2245b4c4120977273eb11d19c2395"; + sha256 = "4b6aac272a5be0d68f365ef6fba0f829fc5c1d1d601bb4dd9e85f5289b2b56c3"; }; nativeBuildInputs = [ pkgconfig python ]; From 7e67caa06c8219c34973744e907b140c0d1f3721 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Thu, 2 Jan 2014 21:28:40 +0800 Subject: [PATCH 05/78] gst-libav: add withSystemLibav option --- .../libraries/gstreamer/libav/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index 9560582278772..d539811462cc6 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -1,7 +1,10 @@ { stdenv, fetchurl, pkgconfig, python, yasm -, gst-plugins-base, bzip2 +, gst-plugins-base, orc, bzip2 +, withSystemLibav ? false, libav ? null }: +assert withSystemLibav -> libav != null; + stdenv.mkDerivation rec { name = "gst-libav-1.2.2"; @@ -17,9 +20,16 @@ stdenv.mkDerivation rec { sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418"; }; - nativeBuildInputs = [ pkgconfig python yasm ]; + configureFlags = stdenv.lib.optionalString withSystemLibav + "--with-system-libav"; + + nativeBuildInputs = with stdenv.lib; + [ pkgconfig python ] + ++ optional (!withSystemLibav) yasm + ; - buildInputs = [ - gst-plugins-base bzip2 - ]; + buildInputs = with stdenv.lib; + [ gst-plugins-base orc bzip2 ] + ++ optional withSystemLibav libav + ; } From 640e13ce1333fb33be02931299f99ab98ab56b93 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Fri, 10 Jan 2014 20:56:18 +0800 Subject: [PATCH 06/78] gst-plugins-bad: build with gnutls to add fragmented plugin --- pkgs/development/libraries/gstreamer/bad/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index f05408767a742..81207155625a4 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -3,7 +3,7 @@ , libmodplug, mpeg2dec, mpg123 , openjpeg, libopus, librsvg , timidity, libvdpau, wayland -, libwebp, xvidcore +, libwebp, xvidcore, gnutls }: stdenv.mkDerivation rec { @@ -29,6 +29,6 @@ stdenv.mkDerivation rec { libmodplug mpeg2dec mpg123 openjpeg libopus librsvg timidity libvdpau wayland - libwebp xvidcore + libwebp xvidcore gnutls ]; } From 4fa90144af9cddc85ba48040a2a12a9c2b2418c6 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Jan 2014 17:17:24 -0600 Subject: [PATCH 07/78] darcsver: Upgrade from 1.7.2 -> 1.7.4 --- pkgs/top-level/python-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 331978e9c9d5d..b7e5589fd438d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1249,11 +1249,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { }); darcsver = buildPythonPackage (rec { - name = "darcsver-1.7.2"; + name = "darcsver-1.7.4"; src = fetchurl { url = "http://pypi.python.org/packages/source/d/darcsver/${name}.tar.gz"; - md5 = "94ca7e8c9ea0f69c0f3fc6f9fc88f65a"; + sha256 = "1yb1c3jxqvy4r3qiwvnb86qi5plw6018h15r3yk5ji3nk54qdcb6"; }; buildInputs = [ pythonPackages.mock ]; From 888c0116de8840ccaaae9d86e6584a8e737720f4 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Jan 2014 17:18:21 -0600 Subject: [PATCH 08/78] pycryptopp: Upgrade from 0.5.29 -> 0.6.0.1206569328141510525648634803928199668821045408958 --- pkgs/top-level/python-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b7e5589fd438d..4b7b1232a3abb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4765,11 +4765,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { pycryptopp = buildPythonPackage (rec { - name = "pycryptopp-0.5.29"; + name = "pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958"; src = fetchurl { url = "http://pypi.python.org/packages/source/p/pycryptopp/${name}.tar.gz"; - sha256 = "d504775b73d30fb05a3237f83c4e9e1ff3312cbba90a4a23e6cbb7d32219502b"; + sha256 = "0n90h1yg7bfvlbhnc54xb6dbqm286ykaksyg04kxlhyjgf8mhq8i"; }; # Prefer crypto++ library from the Nix store over the one that's included From 6b8aaab78a99de2935b91f292bf797e276e04345 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Jan 2014 17:19:18 -0600 Subject: [PATCH 09/78] twisted: Upgrade from 10.2.0 -> 13.2.0 --- pkgs/top-level/python-packages.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4b7b1232a3abb..7d6e867388f40 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6784,11 +6784,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { }); twisted = buildPythonPackage rec { - name = "twisted-10.2.0"; + name = "twisted-13.2.0"; src = fetchurl { - url = http://tmrc.mit.edu/mirror/twisted/Twisted/10.2/Twisted-10.2.0.tar.bz2; - sha256 = "110c30z622jn14yany1sxfaqj5qx20n9rc9zqacxlwma30fdcbjn"; + url = "https://pypi.python.org/packages/source/T/Twisted/Twisted-13.2.0.tar.bz2"; + sha256 = "1wrcqv5lvgwk2aq83qb2s2ng2vx14hbjjk2gc30cg6h1iiipal89"; }; propagatedBuildInputs = [ zope_interface ]; @@ -6809,7 +6809,7 @@ pythonPackages = modules // import ./python-packages-generated.nix { and licensed under the MIT license. ''; - license = "MIT"; + license = pkgs.lib.licenses.mit; maintainers = [ ]; }; From f9c97afff87421e8370b2d5ac3cf4a911c96e441 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Jan 2014 17:19:44 -0600 Subject: [PATCH 10/78] zfec: Upgrade from 1.4.7 -> 1.4.24 --- pkgs/top-level/python-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7d6e867388f40..8426581cf18d8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7222,11 +7222,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { zfec = buildPythonPackage (rec { - name = "zfec-1.4.7"; + name = "zfec-1.4.24"; src = fetchurl { url = "http://pypi.python.org/packages/source/z/zfec/${name}.tar.gz"; - sha256 = "3335c9054f45e2c59188400e892634b68761b29d06f3cafe525c60484902d379"; + sha256 = "1ks94zlpy7n8sb8380gf90gx85qy0p9073wi1wngg6mccxp9xsg3"; }; buildInputs = [ setuptoolsDarcs ]; From 42229f1040079c959ea47ed4232b008bf1e7b6db Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 9 Jan 2014 23:11:22 -0600 Subject: [PATCH 11/78] nix-prefetch-git: Convert relative submodule URLS to absolute URLS nix-prefetch-git does not convert relative submodule urls into absolute urls based on the parent's origin. This patch adds support for repositories which are using the relative url syntax. --- pkgs/build-support/fetchgit/nix-prefetch-git | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 0afae009dc572..8d0de055c756f 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -148,6 +148,12 @@ init_submodules(){ git config -f .gitmodules --get-regexp submodule\.[^.]*\.path | sed -n "s,^\(.*\)\.path $dir\$,\\1,p") local url=$(git config -f .gitmodules --get ${name}.url); + + # Get Absolute URL if we have a relative URL + if ! echo "$url" | grep '^[a-zA-Z]\+://' >/dev/null 2>&1; then + url="$(git config --get remote.origin.url)/$url" + fi + clone "$dir" "$url" "$hash" ""; done; } From c916c9bc2a9a9beb1192a6a36d94f49a97f84df3 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Jan 2014 18:48:12 -0600 Subject: [PATCH 12/78] pysqlite: Upgrade from 2.5.5 -> 2.6.3 --- pkgs/top-level/python-packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8426581cf18d8..cf8d970dfd0e8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5329,11 +5329,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { pysqlite = buildPythonPackage (rec { - name = "pysqlite-2.5.5"; + name = "pysqlite-2.6.3"; src = fetchurl { - url = "http://pysqlite.googlecode.com/files/${name}.tar.gz"; - sha256 = "ef7ca7f44893790e1a7084b10ea083770e138689406fddc7076d12d6bff4d44f"; + url = "https://pypi.python.org/packages/source/p/pysqlite/${name}.tar.gz"; + sha256 = "13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y"; }; # Since the `.egg' file is zipped, the `NEEDED' of the `.so' files From 268ffe1144eb0207fa22a230e1393bfee41eb6b4 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 10 Jan 2014 17:21:45 -0600 Subject: [PATCH 13/78] tahoe-lafs: Upgrade from 1.9.2 -> 1.10.0 Remove patches which do not apply to the newer version. --- .../networking/p2p/tahoe-lafs/default.nix | 35 ++++--------------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 8 insertions(+), 29 deletions(-) diff --git a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix index 38adea8af8f92..8796dbd076e7c 100644 --- a/pkgs/tools/networking/p2p/tahoe-lafs/default.nix +++ b/pkgs/tools/networking/p2p/tahoe-lafs/default.nix @@ -1,5 +1,5 @@ { fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow -, simplejson, zfec, pycryptopp, pysqlite, darcsver, setuptoolsTrial +, simplejson, zfec, pycryptopp, sqlite3, darcsver, setuptoolsTrial , setuptoolsDarcs, numpy, nettools, pycrypto, pyasn1, mock }: # FAILURES: The "running build_ext" phase fails to compile Twisted @@ -8,34 +8,18 @@ # some loss of functionality because of it. let - name = "tahoe-lafs-1.9.2"; + name = "tahoe-lafs-1.10.0"; in buildPythonPackage { inherit name; namePrefix = ""; src = fetchurl { - url = "http://tahoe-lafs.org/source/tahoe-lafs/snapshots/allmydata-tahoe-1.9.2.tar.bz2"; - sha256 = "0111gmavyrnglx10kj8z7wm7y97fyg9isv71c0gx9kq4c03knxq4"; + url = "http://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-1.10.0.tar.bz2"; + sha256 = "1qng7j1vykk8zl5da9yklkljvgxfnjky58gcay6dypz91xq1cmcw"; }; - # The patch doesn't apply cleanly to the current version. - patches = [ /* ./test-timeout.patch */ ]; - configurePhase = '' - echo "forcing the use of \`setuptools' 0.6c9 rather than an unreleased version" - for i in *setup.py - do - sed -i "$i" -es'/0.6c12dev/0.6c9/g' - done - - # `find_exe()' returns a list like ['.../bin/python' - # '.../bin/twistd'], which doesn't work when `twistd' is not a - # Python script (e.g., when it's a script produced by - # `wrapProgram'). - sed -i "src/allmydata/scripts/startstop_node.py" \ - -es"|cmd = find_exe.find_exe('twistd')|cmd = ['${twisted}/bin/twistd']|g" - sed -i "src/allmydata/util/iputil.py" \ -es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g" @@ -50,9 +34,9 @@ buildPythonPackage { buildInputs = [ unzip ] ++ [ numpy ]; # Some tests want this + http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/mock-0.6.0.tar.bz2 - # The `backup' command requires `pysqlite'. + # The `backup' command requires `sqlite3'. propagatedBuildInputs = - [ twisted foolscap nevow simplejson zfec pycryptopp pysqlite + [ twisted foolscap nevow simplejson zfec pycryptopp sqlite3 darcsver setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 mock ]; @@ -61,11 +45,6 @@ buildPythonPackage { postInstall = '' # Install the documentation. - - # FIXME: Inkscape segfaults when run from here. Setting $HOME to - # something writable doesn't help; providing $FONTCONFIG_FILE doesn't - # help either. So we just don't run `make' under `docs/'. - mkdir -p "$out/share/doc/${name}" cp -rv "docs/"* "$out/share/doc/${name}" find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \; @@ -88,7 +67,7 @@ buildPythonPackage { homepage = http://allmydata.org/; - license = [ "GPLv2+" /* or */ "TGPPLv1+" ]; + license = [ lib.licenses.gpl2Plus /* or */ "TGPPLv1+" ]; maintainers = [ lib.maintainers.simons ]; platforms = lib.platforms.gnu; # arbitrary choice diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f9db2276f8746..655c30cf73f03 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8922,7 +8922,7 @@ let tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs { inherit (pythonPackages) twisted foolscap simplejson nevow zfec - pycryptopp pysqlite darcsver setuptoolsTrial setuptoolsDarcs + pycryptopp sqlite3 darcsver setuptoolsTrial setuptoolsDarcs numpy pyasn1 mock; }; From 18626481ca95d4e91c8462efbd1e3ae2ce6a201b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 00:49:07 +0100 Subject: [PATCH 14/78] haskell-git-annex: update to version 5.20140108 --- .../version-management/git-and-tools/git-annex/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/git-annex/default.nix b/pkgs/applications/version-management/git-and-tools/git-annex/default.nix index 5be6faa321e39..28b64c118bae3 100644 --- a/pkgs/applications/version-management/git-and-tools/git-annex/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-annex/default.nix @@ -14,8 +14,8 @@ cabal.mkDerivation (self: { pname = "git-annex"; - version = "5.20140107"; - sha256 = "094jqnx37r6pjsicxmfc67hqh7gps5yqbq4qpl6labk80h63ric9"; + version = "5.20140108"; + sha256 = "17j1avmg66lda52p93689n4mas46rfbjdvss1rvmdh10cj7hg8jy"; isLibrary = false; isExecutable = true; buildDepends = [ From 4d724e60b196a4768bdca10e0bef110889752764 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 00:49:07 +0100 Subject: [PATCH 15/78] haskell-cipher-aes128: update to version 0.6.2 --- pkgs/development/libraries/haskell/cipher-aes128/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/cipher-aes128/default.nix b/pkgs/development/libraries/haskell/cipher-aes128/default.nix index 0ccecef6f07f1..8bb093eb0f816 100644 --- a/pkgs/development/libraries/haskell/cipher-aes128/default.nix +++ b/pkgs/development/libraries/haskell/cipher-aes128/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "cipher-aes128"; - version = "0.6.1"; - sha256 = "0alvsz6l3ihjbl2ygml6k117j4z3485d7ny6cjv1cz3by688s76g"; + version = "0.6.2"; + sha256 = "0rj56p8rcnvk95jc4fx4pxv25yk85vfad7v0znsgzp2hpw4h4ihb"; isLibrary = true; isExecutable = true; buildDepends = [ cereal cryptoApi tagged ]; From 95c90f8bd72c63665f1f47c231c991de19833aca Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 00:49:07 +0100 Subject: [PATCH 16/78] haskell-hledger-lib: update to version 0.22.1 --- .../libraries/haskell/hledger-lib/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/haskell/hledger-lib/default.nix b/pkgs/development/libraries/haskell/hledger-lib/default.nix index 89a6622cf1cea..7e57f0d21e1ae 100644 --- a/pkgs/development/libraries/haskell/hledger-lib/default.nix +++ b/pkgs/development/libraries/haskell/hledger-lib/default.nix @@ -1,20 +1,20 @@ { cabal, cmdargs, csv, dataPprint, filepath, HUnit, mtl, parsec -, prettyShow, regexCompatTdfa, regexpr, safe, split, testFramework +, prettyShow, regexpr, regexTdfa, safe, split, testFramework , testFrameworkHunit, time, transformers, utf8String }: cabal.mkDerivation (self: { pname = "hledger-lib"; - version = "0.22"; - sha256 = "059dbwmafwy25pbr9311lknhyjlycdhhal4ng9i56bgd334l2wx3"; + version = "0.22.1"; + sha256 = "0kaa778swx4vw0rkhxd3h9h9qj13rzz24x92z139vad1n722gcw1"; buildDepends = [ - cmdargs csv dataPprint filepath HUnit mtl parsec prettyShow - regexCompatTdfa regexpr safe split time transformers utf8String + cmdargs csv dataPprint filepath HUnit mtl parsec prettyShow regexpr + regexTdfa safe split time transformers utf8String ]; testDepends = [ - cmdargs csv dataPprint filepath HUnit mtl parsec prettyShow - regexCompatTdfa regexpr safe split testFramework testFrameworkHunit - time transformers + cmdargs csv dataPprint filepath HUnit mtl parsec prettyShow regexpr + regexTdfa safe split testFramework testFrameworkHunit time + transformers ]; meta = { homepage = "http://hledger.org"; From 284ad16da5c70c68c48c4570a12b3af1f3ef7e39 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 00:49:08 +0100 Subject: [PATCH 17/78] haskell-hledger-web: update to version 0.22.1 --- pkgs/development/libraries/haskell/hledger-web/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/hledger-web/default.nix b/pkgs/development/libraries/haskell/hledger-web/default.nix index f846dba7fc877..21dc845b11757 100644 --- a/pkgs/development/libraries/haskell/hledger-web/default.nix +++ b/pkgs/development/libraries/haskell/hledger-web/default.nix @@ -8,8 +8,8 @@ cabal.mkDerivation (self: { pname = "hledger-web"; - version = "0.22"; - sha256 = "0bd1cb6988ainkzi034a4g4xnslqc6djv74gbq58aaxjqn4m7m80"; + version = "0.22.1"; + sha256 = "0nqw7scnhcip2bg832p9v0rqk01gn4xwj9bqsvsvmh31fh9ldchw"; isLibrary = true; isExecutable = true; buildDepends = [ From ebfb00276cf8f41071f2718108ffa86f98fca53d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 00:49:08 +0100 Subject: [PATCH 18/78] haskell-hledger: update to version 0.22.1 --- .../libraries/haskell/hledger/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/haskell/hledger/default.nix b/pkgs/development/libraries/haskell/hledger/default.nix index 47a5ed381f6ba..17db54329911c 100644 --- a/pkgs/development/libraries/haskell/hledger/default.nix +++ b/pkgs/development/libraries/haskell/hledger/default.nix @@ -1,13 +1,13 @@ { cabal, cmdargs, csv, dataPprint, filepath, haskeline, hledgerLib -, HUnit, mtl, parsec, prettyShow, regexCompatTdfa, regexpr, safe -, shakespeareText, split, tabular, testFramework -, testFrameworkHunit, text, time, transformers, utf8String +, HUnit, mtl, parsec, prettyShow, regexpr, safe, shakespeareText +, split, tabular, testFramework, testFrameworkHunit, text, time +, transformers, utf8String }: cabal.mkDerivation (self: { pname = "hledger"; - version = "0.22"; - sha256 = "1fwi1a2nvhfjinif7gy7rv00gn7kazwzmhsskpim2a7bg99sfxb9"; + version = "0.22.1"; + sha256 = "1mlh5dlbfkqz41i7zaa4cybf75cg5mrp6sj48kwns0liaqyvav58"; isLibrary = true; isExecutable = true; buildDepends = [ @@ -16,9 +16,8 @@ cabal.mkDerivation (self: { ]; testDepends = [ cmdargs csv dataPprint filepath haskeline hledgerLib HUnit mtl - parsec prettyShow regexCompatTdfa regexpr safe shakespeareText - split tabular testFramework testFrameworkHunit text time - transformers + parsec prettyShow regexpr safe shakespeareText split tabular + testFramework testFrameworkHunit text time transformers ]; meta = { homepage = "http://hledger.org"; From 03b17fdab25f23d5b856f4cf965f96065c314f0a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 00:49:08 +0100 Subject: [PATCH 19/78] haskell-cabal2nix: update to version 1.58 --- pkgs/development/tools/haskell/cabal2nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/haskell/cabal2nix/default.nix b/pkgs/development/tools/haskell/cabal2nix/default.nix index 5081b9352676b..d0d7e7b39b240 100644 --- a/pkgs/development/tools/haskell/cabal2nix/default.nix +++ b/pkgs/development/tools/haskell/cabal2nix/default.nix @@ -3,8 +3,8 @@ cabal.mkDerivation (self: { pname = "cabal2nix"; - version = "1.57"; - sha256 = "0mwd3qh4ncbbwmaspnxl0hmirjclkqm8zhvchc55fgnskrfbidhq"; + version = "1.58"; + sha256 = "0xsp0f87583pcjdfhngbc9465yisk2m3sn6904s0szprkpi2p03x"; isLibrary = false; isExecutable = true; buildDepends = [ Cabal filepath hackageDb HTTP mtl regexPosix ]; From 537a6fe9db25c5430f12b1048bbd16a85b9f0d12 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 10:39:28 +0100 Subject: [PATCH 20/78] haskell-fast-logger: update to version 2.1.2 --- pkgs/development/libraries/haskell/fast-logger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/fast-logger/default.nix b/pkgs/development/libraries/haskell/fast-logger/default.nix index 657307cded189..0e9a2dae8b488 100644 --- a/pkgs/development/libraries/haskell/fast-logger/default.nix +++ b/pkgs/development/libraries/haskell/fast-logger/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "fast-logger"; - version = "2.1.1"; - sha256 = "1ifpar9g12cv458j0mwqh2dwa7y2h5rna4628lz8majx2477r3c1"; + version = "2.1.2"; + sha256 = "0kz31jfhc40wlw3b49zcsn97y6vc9qqnaci743mgjskv4zbqaf34"; buildDepends = [ blazeBuilder filepath text ]; testDepends = [ hspec ]; meta = { From 154eda228cd979ce044836b437febc2588216977 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 10:40:55 +0100 Subject: [PATCH 21/78] haskell-text: update to 1.1.0.0 --- .../libraries/haskell/text/{1.0.0.1.nix => 1.1.0.0.nix} | 4 ++-- pkgs/top-level/haskell-packages.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename pkgs/development/libraries/haskell/text/{1.0.0.1.nix => 1.1.0.0.nix} (87%) diff --git a/pkgs/development/libraries/haskell/text/1.0.0.1.nix b/pkgs/development/libraries/haskell/text/1.1.0.0.nix similarity index 87% rename from pkgs/development/libraries/haskell/text/1.0.0.1.nix rename to pkgs/development/libraries/haskell/text/1.1.0.0.nix index 31fb2eff85807..87a89c43be4e2 100644 --- a/pkgs/development/libraries/haskell/text/1.0.0.1.nix +++ b/pkgs/development/libraries/haskell/text/1.1.0.0.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "text"; - version = "1.0.0.1"; - sha256 = "1bcwsib0iw88lkg2dyxf030wsm48q311qm4pjqhgjqr5wjvlqdj3"; + version = "1.1.0.0"; + sha256 = "14mssz27f5ivhwcl9gvbw0s1mjh7hw9gviwxnimqiqzh4jlavwc0"; buildDepends = [ deepseq ]; testDepends = [ deepseq HUnit QuickCheck random testFramework testFrameworkHunit diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 02d55a1b6d545..53238d4c4690b 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -167,7 +167,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x split = self.split_0_2_2; stm = self.stm_2_4_2; syb = self.syb_0_4_1; - text = self.text_1_0_0_1; + text = self.text_1_1_0_0; transformers = self.transformers_0_3_0_0; # this has become a core package in GHC 7.7 unorderedContainers = self.unorderedContainers_0_2_3_3; vector = self.vector_0_10_9_1; @@ -2217,8 +2217,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x text_0_11_2_0 = callPackage ../development/libraries/haskell/text/0.11.2.0.nix {}; text_0_11_2_3 = callPackage ../development/libraries/haskell/text/0.11.2.3.nix {}; text_0_11_3_1 = callPackage ../development/libraries/haskell/text/0.11.3.1.nix {}; - text_1_0_0_1 = callPackage ../development/libraries/haskell/text/1.0.0.1.nix {}; - text = self.text_1_0_0_1; + text_1_1_0_0 = callPackage ../development/libraries/haskell/text/1.1.0.0.nix {}; + text = self.text_1_1_0_0; textFormat = callPackage ../development/libraries/haskell/text-format {}; From cb3c13b436dc646bafc90f8cfd59ee0cc5648bb1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 10:41:04 +0100 Subject: [PATCH 22/78] haskell-packages.nix: strip trailing whitespace --- pkgs/top-level/haskell-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 53238d4c4690b..df360d3f90d15 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -2611,7 +2611,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x }; yi = callPackage ../applications/editors/yi/yi.nix {}; - + yiContrib = callPackage ../applications/editors/yi/yi-contrib.nix {}; xmobar = callPackage ../applications/misc/xmobar {}; From ed3ca23cb1e0badeed2bf099f0d2413d24f438f2 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 10:57:30 +0100 Subject: [PATCH 23/78] happy-1.19.2: remove import of "Data.Monoid (<>)" from Setup.lhs to fix build with GHC 7.2.2 This patch works around . --- pkgs/development/tools/parsing/happy/1.19.2.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/tools/parsing/happy/1.19.2.nix b/pkgs/development/tools/parsing/happy/1.19.2.nix index eaf027b591dc9..4173d6d6c1110 100644 --- a/pkgs/development/tools/parsing/happy/1.19.2.nix +++ b/pkgs/development/tools/parsing/happy/1.19.2.nix @@ -8,6 +8,7 @@ cabal.mkDerivation (self: { isExecutable = true; buildDepends = [ mtl ]; buildTools = [ perl ]; + patchPhase = "sed -i -e '/^import Data.Monoid/d' Setup.lhs"; meta = { homepage = "http://www.haskell.org/happy/"; description = "Happy is a parser generator for Haskell"; From 772ff042508e58ed2fd903b49379d6f6973da481 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 11:19:48 +0100 Subject: [PATCH 24/78] parsec-3.1.4: jailbreak to fix build with recent versions of 'text' --- pkgs/development/libraries/haskell/parsec/3.1.4.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/haskell/parsec/3.1.4.nix b/pkgs/development/libraries/haskell/parsec/3.1.4.nix index 82032dda61c8c..b4d318baa34e9 100644 --- a/pkgs/development/libraries/haskell/parsec/3.1.4.nix +++ b/pkgs/development/libraries/haskell/parsec/3.1.4.nix @@ -5,6 +5,7 @@ cabal.mkDerivation (self: { version = "3.1.4"; sha256 = "0milmi4q5jdcmmwjqa4lcs1vcw5frkrlrxc8q17lkas3p2m10kh5"; buildDepends = [ mtl text ]; + jailbreak = true; meta = { homepage = "http://www.cs.uu.nl/~daan/parsec.html"; description = "Monadic parser combinators"; From 2f51f6908edf85e624134db3bcda029f815b6c7f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 9 Jan 2014 11:29:13 +0100 Subject: [PATCH 25/78] yi: re-generate expression with cabal2nix --- pkgs/applications/editors/yi/yi.nix | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/editors/yi/yi.nix b/pkgs/applications/editors/yi/yi.nix index 01ddd5a9d8e57..4dfc60bef7694 100644 --- a/pkgs/applications/editors/yi/yi.nix +++ b/pkgs/applications/editors/yi/yi.nix @@ -1,11 +1,10 @@ { cabal, alex, binary, Cabal, cautiousFile, concreteTyperep , dataAccessor, dataAccessorMtl, dataAccessorTemplate, derive, Diff -, dlist, dyre, filepath, fingertree, ghcPaths, hashable, hint -, HUnit, mtl, parsec, pointedlist, pureMD5, QuickCheck, random -, regexBase, regexTdfa, split, testFramework, testFrameworkHunit -, time, uniplate, unixCompat, unorderedContainers, utf8String, vty -, pango, gtk, gio, glib, cairo -, xdgBasedir +, dlist, dyre, filepath, fingertree, ghcPaths, glib, gtk, hashable +, hint, HUnit, mtl, pango, parsec, pointedlist, pureMD5, QuickCheck +, random, regexBase, regexTdfa, split, testFramework +, testFrameworkHunit, time, uniplate, unixCompat +, unorderedContainers, utf8String, vty, xdgBasedir }: cabal.mkDerivation (self: { @@ -17,22 +16,22 @@ cabal.mkDerivation (self: { buildDepends = [ binary Cabal cautiousFile concreteTyperep dataAccessor dataAccessorMtl dataAccessorTemplate derive Diff dlist dyre - filepath fingertree ghcPaths hashable hint mtl parsec pointedlist - pureMD5 QuickCheck random regexBase regexTdfa split time uniplate - unixCompat unorderedContainers utf8String vty xdgBasedir pango gtk - gio glib cairo + filepath fingertree ghcPaths glib gtk hashable hint mtl pango + parsec pointedlist pureMD5 QuickCheck random regexBase regexTdfa + split time uniplate unixCompat unorderedContainers utf8String vty + xdgBasedir ]; testDepends = [ filepath HUnit QuickCheck testFramework testFrameworkHunit ]; buildTools = [ alex ]; + configureFlags = "-fpango"; + jailbreak = true; + doCheck = false; meta = { homepage = "http://haskell.org/haskellwiki/Yi"; description = "The Haskell-Scriptable Editor"; license = "GPL"; platforms = self.ghc.meta.platforms; }; - configureFlags="-fpango"; - jailbreak=true; - doCheck=false; # Tests fail in version on hackage because files are missing }) From 4dfcdb0f3cd826f10051cde001e4228f936e4b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 11 Jan 2014 12:18:13 +0100 Subject: [PATCH 26/78] evince: downgrade to stable gnome, add icons, fix runtime error --- pkgs/desktops/gnome-3/core/evince/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/desktops/gnome-3/core/evince/default.nix b/pkgs/desktops/gnome-3/core/evince/default.nix index dde3d807093fc..42b3eaa9c0a40 100644 --- a/pkgs/desktops/gnome-3/core/evince/default.nix +++ b/pkgs/desktops/gnome-3/core/evince/default.nix @@ -1,23 +1,21 @@ { fetchurl, stdenv, pkgconfig, intltool, perl, perlXMLParser, libxml2 -, glib, gtk3, pango, atk, gdk_pixbuf, shared_mime_info -, itstool, gnome_icon_theme, libgnome_keyring, gsettings_desktop_schemas -, poppler, ghostscriptX, djvulibre, libspectre, libsecret -, makeWrapper #, python /*just for tests*/ -, recentListSize ? null # 5 is not enough, allow passing a different number +, glib, gtk3, pango, atk, gdk_pixbuf, shared_mime_info, itstool, gnome3 +, poppler, ghostscriptX, djvulibre, libspectre, libsecret , makeWrapper +, librsvg, recentListSize ? null # 5 is not enough, allow passing a different number }: stdenv.mkDerivation rec { - name = "evince-3.11.1"; + name = "evince-3.10.3"; src = fetchurl { - url = "mirror://gnome/sources/evince/3.11/${name}.tar.xz"; - sha256 = "0qflxvvvqn1khyk93isjhp6v719pvmn3vpfxnrsh63f1a6h0j5r8"; + url = "mirror://gnome/sources/evince/3.10/${name}.tar.xz"; + sha256 = "1bz9ypsvlfw1vgs7i5glba1h1n6c90f0d1g64linhg6xjcxcq3dk"; }; buildInputs = [ pkgconfig intltool perl perlXMLParser libxml2 glib gtk3 pango atk gdk_pixbuf - itstool gnome_icon_theme libgnome_keyring gsettings_desktop_schemas + itstool gnome3.gnome_icon_theme gnome3.libgnome_keyring gnome3.gsettings_desktop_schemas poppler ghostscriptX djvulibre libspectre makeWrapper libsecret ]; @@ -45,7 +43,8 @@ stdenv.mkDerivation rec { # Tell Glib/GIO about the MIME info directory, which is used # by `g_file_info_get_content_type ()'. wrapProgram "$out/bin/evince" \ - --prefix XDG_DATA_DIRS : "${shared_mime_info}/share:$out/share" + --set GDK_PIXBUF_MODULE_FILE ${librsvg}/lib/gdk-pixbuf/loaders.cache \ + --prefix XDG_DATA_DIRS : "${gnome3.gnome_icon_theme}/share:${gnome3.gsettings_desktop_schemas}/share:${shared_mime_info}/share:$out/share" ''; doCheck = false; # would need pythonPackages.dogTail, which is missing From 98d36be7d8e104105002a883ce7fbc996fa9c278 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 12:22:55 +0100 Subject: [PATCH 27/78] Gnome3 core: add libgxps. --- .../desktops/gnome-3/core/libgxps/default.nix | 20 +++++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/desktops/gnome-3/core/libgxps/default.nix diff --git a/pkgs/desktops/gnome-3/core/libgxps/default.nix b/pkgs/desktops/gnome-3/core/libgxps/default.nix new file mode 100644 index 0000000000000..72d307f4f1a76 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/libgxps/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, pkgconfig, glib, cairo, libarchive, freetype, libjpeg, libtiff +, openssl, bzip2, acl, attr +}: + +stdenv.mkDerivation rec { + name = "libgxps-0.2.2"; + + src = fetchurl { + url = "http://ftp.acc.umu.se/pub/GNOME/core/3.10/3.10.2/sources/${name}.tar.xz"; + sha256 = "1gi0b0x0354jyqc48vspk2hg2q1403cf2p9ibj847nzhkdrh9l9r"; + }; + + buildInputs = [ pkgconfig glib cairo libarchive freetype libjpeg libtiff acl openssl bzip2 attr]; + + configureFlags = "--without-liblcms2"; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index 082d5c0e88b1a..d11fa30413fd2 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -47,6 +47,8 @@ rec { libgee = callPackage ./core/libgee { }; + libgxps = callPackage ./core/libgxps { }; + libpeas = callPackage ./core/libpeas {}; libgweather = callPackage ./core/libgweather { libsoup = pkgs.libsoup_2_44; }; @@ -79,4 +81,5 @@ rec { gitg = callPackage ./misc/gitg { }; libgit2-glib = callPackage ./misc/libgit2-glib { automake = pkgs.automake111x; }; + } From 4ade85270736c35c6e909295629a570608e287d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 11 Jan 2014 12:23:32 +0100 Subject: [PATCH 28/78] gnome3.eog: downgrade to stable gnome major version --- pkgs/desktops/gnome-3/core/eog/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/desktops/gnome-3/core/eog/default.nix b/pkgs/desktops/gnome-3/core/eog/default.nix index 4e148f46bd8e4..d117964b1961d 100644 --- a/pkgs/desktops/gnome-3/core/eog/default.nix +++ b/pkgs/desktops/gnome-3/core/eog/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { - name = "eog-3.11.2"; + name = "eog-3.10.2"; src = fetchurl { - url = "mirror://gnome/sources/eog/3.11/${name}.tar.xz"; - sha256 = "0arad1jzp7hwwxq1s1913j07z8flvdkvvwcbvsrjls3gp5s6lgsw"; + url = "mirror://gnome/sources/eog/3.10/${name}.tar.xz"; + sha256 = "0qs7wmn987vd0cw8w16gmb0bnda3nkcwfg1q343l4rm6kih9ik2w"; }; buildInputs = with gnome3; From 0657498c6f96a285ab36cbe32749375472ac2b4a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 12:35:48 +0100 Subject: [PATCH 29/78] Gnome3: add libqmi-1.0 --- pkgs/desktops/gnome-3/core/libqmi/default.nix | 16 ++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/desktops/gnome-3/core/libqmi/default.nix diff --git a/pkgs/desktops/gnome-3/core/libqmi/default.nix b/pkgs/desktops/gnome-3/core/libqmi/default.nix new file mode 100644 index 0000000000000..beb63f80b80e3 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/libqmi/default.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchurl, pkgconfig, glib, python }: + +stdenv.mkDerivation rec { + name = "libqmi-1.0"; + + src = fetchurl { + url = "http://ftp.acc.umu.se/pub/GNOME/core/3.10/3.10.2/sources/${name}.tar.xz"; + sha256 = "0w4cd7nihp73frh3sfi13fx0rkwmd581xpil54bsjc7pw7z01bd1"; + }; + + buildInputs = [ pkgconfig glib python ]; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index d11fa30413fd2..10e85dc899873 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -51,6 +51,8 @@ rec { libpeas = callPackage ./core/libpeas {}; + libqmi = callPackage ./core/libqmi {}; + libgweather = callPackage ./core/libgweather { libsoup = pkgs.libsoup_2_44; }; nautilus = callPackage ./core/nautilus { }; From 3a8aa938218d7aac650b4bcca69b958f58e4407a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 13:21:01 +0100 Subject: [PATCH 30/78] Gnome3: add rest-0.7.90 --- pkgs/desktops/gnome-3/core/rest/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkgs/desktops/gnome-3/core/rest/default.nix diff --git a/pkgs/desktops/gnome-3/core/rest/default.nix b/pkgs/desktops/gnome-3/core/rest/default.nix new file mode 100644 index 0000000000000..6c12353d03673 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/rest/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchurl, pkgconfig, glib, libsoup }: + +stdenv.mkDerivation rec { + name = "rest-0.7.90"; + + src = fetchurl { + url = "http://ftp.acc.umu.se/pub/GNOME/core/3.10/3.10.2/sources/${name}.tar.xz"; + sha256 = "08n0cvz44l4b1gkmjryap3ysd0wcbbbdjbcar73nr52dmk52ls0x"; + }; + + buildInputs = [ pkgconfig glib libsoup ]; + + configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-bundle.crt"; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +} From 59626be3de03132d04fd4ed0a8e3bb105a10cd33 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 14:14:39 +0100 Subject: [PATCH 31/78] Gnome3: add gnome-online-accounts. --- .../core/gnome-online-accounts/default.nix | 20 +++++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 8 ++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix diff --git a/pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix b/pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix new file mode 100644 index 0000000000000..3040d817a16fd --- /dev/null +++ b/pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, pkgconfig, glib, libxslt, gtk, webkitgtk, json_glib, rest, libsecret, dbus_glib +, telepathy_glib, intltool, dbus_libs, icu, libsoup, docbook_xsl_ns, docbook_xsl +}: + +stdenv.mkDerivation rec { + name = "gnome-online-accounts-3.10.2"; + + src = fetchurl { + url = "http://ftp.acc.umu.se/pub/GNOME/core/3.10/3.10.2/sources/${name}.tar.xz"; + sha256 = "15qvw40dmi886491s3abpidsm2lx65fhglhj99bvcdskhk0ih90b"; + }; + + NIX_CFLAGS_COMPILE = "-I${dbus_glib}/include/dbus-1.0 -I${dbus_libs}/include/dbus-1.0"; + + buildInputs = [ pkgconfig glib libxslt gtk webkitgtk json_glib rest libsecret dbus_glib telepathy_glib intltool icu libsoup docbook_xsl_ns docbook_xsl]; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index 10e85dc899873..df1ddf45bfc0c 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -10,7 +10,7 @@ rec { #### Overrides of libraries librsvg = pkgs.librsvg.override { inherit gtk2; }; # gtk2 mysteriously needed in librsvg for goffice (commented in Gentoo) - + libsoup = pkgs.libsoup_2_44; #### Core (http://ftp.acc.umu.se/pub/GNOME/core/) @@ -33,6 +33,8 @@ rec { gnome_keyring = callPackage ./core/gnome-keyring { }; libgnome_keyring = callPackage ./core/libgnome-keyring { }; + gnome_online_accounts = callPackage ./core/gnome-online-accounts { }; + gnome_terminal = callPackage ./core/gnome-terminal { }; gnome_themes_standard = callPackage ./core/gnome-themes-standard { }; @@ -53,10 +55,12 @@ rec { libqmi = callPackage ./core/libqmi {}; - libgweather = callPackage ./core/libgweather { libsoup = pkgs.libsoup_2_44; }; + libgweather = callPackage ./core/libgweather { }; nautilus = callPackage ./core/nautilus { }; + rest = callPackage ./core/rest { }; + vte = callPackage ./core/vte { }; zenity = callPackage ./core/zenity { }; From 1bf54ce52c8c8c49cdcd31e1905bd21ab29b2bb3 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 14:19:41 +0100 Subject: [PATCH 32/78] Gnome3: added libzapojit --- .../desktops/gnome-3/core/libzapojit/default.nix | 16 ++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/desktops/gnome-3/core/libzapojit/default.nix diff --git a/pkgs/desktops/gnome-3/core/libzapojit/default.nix b/pkgs/desktops/gnome-3/core/libzapojit/default.nix new file mode 100644 index 0000000000000..e0e4c02c084c7 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/libzapojit/default.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchurl, pkgconfig, glib, intltool, json_glib, rest, libsoup, gtk, gnome_online_accounts }: + +stdenv.mkDerivation rec { + name = "libzapojit-0.0.3"; + + src = fetchurl { + url = "http://ftp.acc.umu.se/pub/GNOME/core/3.10/3.10.2/sources/${name}.tar.xz"; + sha256 = "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x"; + }; + + buildInputs = [ pkgconfig glib intltool json_glib rest libsoup gtk gnome_online_accounts ]; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index df1ddf45bfc0c..1100be9ce2595 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -57,6 +57,8 @@ rec { libgweather = callPackage ./core/libgweather { }; + libzapojit = callPackage ./core/libzapojit { }; + nautilus = callPackage ./core/nautilus { }; rest = callPackage ./core/rest { }; From 4b5313b8b66470c7629cb1c690ff3178655f7646 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:07:25 +0100 Subject: [PATCH 33/78] haskell-parsec: update to version 3.1.5 --- .../libraries/haskell/parsec/{3.1.4.nix => 3.1.5.nix} | 4 ++-- pkgs/top-level/haskell-packages.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename pkgs/development/libraries/haskell/parsec/{3.1.4.nix => 3.1.5.nix} (82%) diff --git a/pkgs/development/libraries/haskell/parsec/3.1.4.nix b/pkgs/development/libraries/haskell/parsec/3.1.5.nix similarity index 82% rename from pkgs/development/libraries/haskell/parsec/3.1.4.nix rename to pkgs/development/libraries/haskell/parsec/3.1.5.nix index b4d318baa34e9..9d1174db056f0 100644 --- a/pkgs/development/libraries/haskell/parsec/3.1.4.nix +++ b/pkgs/development/libraries/haskell/parsec/3.1.5.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "parsec"; - version = "3.1.4"; - sha256 = "0milmi4q5jdcmmwjqa4lcs1vcw5frkrlrxc8q17lkas3p2m10kh5"; + version = "3.1.5"; + sha256 = "1f1wg4qxp1ss2160sa3vbqff18fabwhqjkyfj4sgyfmwf9fj8wn5"; buildDepends = [ mtl text ]; jailbreak = true; meta = { diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index df360d3f90d15..c3ab21a090216 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -158,7 +158,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x OpenGL = self.OpenGL_2_9_1_0; OpenGLRaw = self.OpenGLRaw_1_4_0_0; parallel = self.parallel_3_2_0_4; - parsec = self.parsec_3_1_4; + parsec = self.parsec_3_1_5; QuickCheck = self.QuickCheck_2_6; random = self.random_1_0_1_1; regexBase = self.regexBase_0_93_2; @@ -1740,9 +1740,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x parsec_3_1_1 = callPackage ../development/libraries/haskell/parsec/3.1.1.nix {}; parsec_3_1_2 = callPackage ../development/libraries/haskell/parsec/3.1.2.nix {}; parsec_3_1_3 = callPackage ../development/libraries/haskell/parsec/3.1.3.nix {}; - parsec_3_1_4 = callPackage ../development/libraries/haskell/parsec/3.1.4.nix {}; + parsec_3_1_5 = callPackage ../development/libraries/haskell/parsec/3.1.5.nix {}; parsec2 = self.parsec_2_1_0_1; - parsec3 = self.parsec_3_1_4; + parsec3 = self.parsec_3_1_5; parsec = self.parsec3; parsers_0_9 = callPackage ../development/libraries/haskell/parsers/0.9.nix {}; From 579a05cc836b5872e681382993fe03873d1da25b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:08:19 +0100 Subject: [PATCH 34/78] haskell-attoparsec: add version 0.11.1.0 --- .../libraries/haskell/attoparsec/0.11.1.0.nix | 20 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/haskell/attoparsec/0.11.1.0.nix diff --git a/pkgs/development/libraries/haskell/attoparsec/0.11.1.0.nix b/pkgs/development/libraries/haskell/attoparsec/0.11.1.0.nix new file mode 100644 index 0000000000000..bd7bdc745b28b --- /dev/null +++ b/pkgs/development/libraries/haskell/attoparsec/0.11.1.0.nix @@ -0,0 +1,20 @@ +{ cabal, deepseq, QuickCheck, scientific, testFramework +, testFrameworkQuickcheck2, text +}: + +cabal.mkDerivation (self: { + pname = "attoparsec"; + version = "0.11.1.0"; + sha256 = "09mks6lbzmqmdz6s10lvdklmc0mydd1sk5hphhnybp3yr4pvh7jc"; + buildDepends = [ deepseq scientific text ]; + testDepends = [ + QuickCheck testFramework testFrameworkQuickcheck2 text + ]; + meta = { + homepage = "https://github.com/bos/attoparsec"; + description = "Fast combinator parsing for bytestrings and text"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ self.stdenv.lib.maintainers.andres ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index c3ab21a090216..e3aabdf85c0a2 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -142,7 +142,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x haskellPlatformArgs_future = self : { inherit (self) cabal ghc; async = self.async_2_0_1_5; - attoparsec = self.attoparsec_0_10_4_0; + attoparsec = self.attoparsec_0_11_1_0; caseInsensitive = self.caseInsensitive_1_1_0_2; cgi = self.cgi_3001_1_8_4; fgl = self.fgl_5_4_2_4; @@ -566,6 +566,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x attempt = callPackage ../development/libraries/haskell/attempt {}; attoparsec_0_10_4_0 = callPackage ../development/libraries/haskell/attoparsec/0.10.4.0.nix {}; + attoparsec_0_11_1_0 = callPackage ../development/libraries/haskell/attoparsec/0.11.1.0.nix {}; attoparsec = self.attoparsec_0_10_4_0; attoparsecBinary = callPackage ../development/libraries/haskell/attoparsec-binary {}; From 07c05982aa38d59ed2395b47075b0f66735d1deb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:08:26 +0100 Subject: [PATCH 35/78] haskell-pandoc-citeproc: update to version 0.3.0.1 --- .../libraries/haskell/pandoc-citeproc/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/pandoc-citeproc/default.nix b/pkgs/development/libraries/haskell/pandoc-citeproc/default.nix index bbfd6430d4f2d..62044cc9f5f6e 100644 --- a/pkgs/development/libraries/haskell/pandoc-citeproc/default.nix +++ b/pkgs/development/libraries/haskell/pandoc-citeproc/default.nix @@ -6,8 +6,8 @@ cabal.mkDerivation (self: { pname = "pandoc-citeproc"; - version = "0.2"; - sha256 = "0ghdkzml2rcvjf1wlpsa6ih117x56qlb3ajpbwnpwm3y4wm0jm2d"; + version = "0.3.0.1"; + sha256 = "1w8ljf0mc5a3bqv0hymg2daafkrlzdzar23l4yqakjr21n75nvlx"; isLibrary = true; isExecutable = true; buildDepends = [ @@ -16,7 +16,7 @@ cabal.mkDerivation (self: { temporary texmath text time vector yaml ]; testDepends = [ - aeson aesonPretty filepath pandoc pandocTypes temporary text yaml + aeson filepath pandoc pandocTypes temporary text yaml ]; doCheck = false; meta = { From 0894a2e1b58cbf2750c5bf499f2d31bb0537e896 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 13:40:47 +0100 Subject: [PATCH 36/78] haskell-hakyll: jailbreak to fix build with pandoc-citeproc --- pkgs/development/libraries/haskell/hakyll/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/haskell/hakyll/default.nix b/pkgs/development/libraries/haskell/hakyll/default.nix index 75153a3ddb07b..36e56de639c3e 100644 --- a/pkgs/development/libraries/haskell/hakyll/default.nix +++ b/pkgs/development/libraries/haskell/hakyll/default.nix @@ -26,6 +26,9 @@ cabal.mkDerivation (self: { testFrameworkHunit testFrameworkQuickcheck2 text time ]; doCheck = false; + patchPhase = '' + sed -i -e 's|pandoc-citeproc >=.*,|pandoc-citeproc,|' hakyll.cabal + ''; meta = { homepage = "http://jaspervdj.be/hakyll"; description = "A static website compiler library"; From d40a53703820ca0b7384ad16a8937e998f0fd57b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:08:26 +0100 Subject: [PATCH 37/78] haskell-pandoc: update to version 1.12.3 --- .../libraries/haskell/pandoc/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/libraries/haskell/pandoc/default.nix b/pkgs/development/libraries/haskell/pandoc/default.nix index b42fc3633f091..6d30e638fcb5f 100644 --- a/pkgs/development/libraries/haskell/pandoc/default.nix +++ b/pkgs/development/libraries/haskell/pandoc/default.nix @@ -1,20 +1,21 @@ { cabal, aeson, alex, ansiTerminal, attoparsec, base64Bytestring -, blazeHtml, blazeMarkup, dataDefault, Diff, extensibleExceptions -, filepath, happy, highlightingKate, hslua, HTTP, httpConduit -, httpTypes, HUnit, mtl, network, pandocTypes, parsec, QuickCheck -, random, syb, tagsoup, temporary, testFramework -, testFrameworkHunit, testFrameworkQuickcheck2, texmath, text, time -, unorderedContainers, vector, xml, yaml, zipArchive, zlib +, binary, blazeHtml, blazeMarkup, dataDefault, Diff +, extensibleExceptions, filepath, happy, highlightingKate, hslua +, HTTP, httpConduit, httpTypes, HUnit, mtl, network, pandocTypes +, parsec, QuickCheck, random, syb, tagsoup, temporary +, testFramework, testFrameworkHunit, testFrameworkQuickcheck2 +, texmath, text, time, unorderedContainers, vector, xml, yaml +, zipArchive, zlib }: cabal.mkDerivation (self: { pname = "pandoc"; - version = "1.12.2.1"; - sha256 = "1xyvhfsz0cy5f7cwpz4kl0l87vylb8860c06wvk49z9fh2xkg6lf"; + version = "1.12.3"; + sha256 = "007pcb93s1frcyx3x4shcb6bynysy7g0hvrqlxs4991a7jp360bl"; isLibrary = true; isExecutable = true; buildDepends = [ - aeson alex attoparsec base64Bytestring blazeHtml blazeMarkup + aeson alex attoparsec base64Bytestring binary blazeHtml blazeMarkup dataDefault extensibleExceptions filepath happy highlightingKate hslua HTTP httpConduit httpTypes mtl network pandocTypes parsec random syb tagsoup temporary texmath text time unorderedContainers From 133e07cae53fb6b6c487d1010515ac864bfd8067 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:08:26 +0100 Subject: [PATCH 38/78] haskell-pipes-attoparsec: update to version 0.3.1 --- .../libraries/haskell/pipes-attoparsec/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/pipes-attoparsec/default.nix b/pkgs/development/libraries/haskell/pipes-attoparsec/default.nix index 50f169928db5b..484f210456725 100644 --- a/pkgs/development/libraries/haskell/pipes-attoparsec/default.nix +++ b/pkgs/development/libraries/haskell/pipes-attoparsec/default.nix @@ -5,8 +5,8 @@ cabal.mkDerivation (self: { pname = "pipes-attoparsec"; - version = "0.3.0"; - sha256 = "1jsgssfs0ndn8aayc0rxyb4vlp2fny8npmnvym7v1yhp2qv84c7b"; + version = "0.3.1"; + sha256 = "1bvz5fxy2mfz3swiv9jfmhxl1psmm3c7nfi58pggam52lz20va2h"; buildDepends = [ attoparsec pipes pipesParse text transformers ]; testDepends = [ attoparsec HUnit mmorph pipes pipesParse QuickCheck testFramework From 15342117fb984524c8123ed98e8e4b8ab895a5a7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:08:26 +0100 Subject: [PATCH 39/78] haskell-shelly: update to version 1.4.0.1 --- pkgs/development/libraries/haskell/shelly/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/shelly/default.nix b/pkgs/development/libraries/haskell/shelly/default.nix index 6f73537e8b675..aed1b98986bcd 100644 --- a/pkgs/development/libraries/haskell/shelly/default.nix +++ b/pkgs/development/libraries/haskell/shelly/default.nix @@ -3,8 +3,8 @@ cabal.mkDerivation (self: { pname = "shelly"; - version = "1.3.2"; - sha256 = "1n6kj9sw6d1nwg7lz1pgmjn8pjxxr76m5sxybv4hacakid3glddh"; + version = "1.4.0.1"; + sha256 = "0hra0dk1zma15jd1cag04lcvw6cmddhghi4gpajrrvyij0pi6ij7"; buildDepends = [ mtl systemFileio systemFilepath text time unixCompat ]; From c7922559036a6e2029fe5098f150aaf4f1a0da27 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:08:26 +0100 Subject: [PATCH 40/78] haskell-symbol: update to version 0.2.1 --- pkgs/development/libraries/haskell/symbol/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/symbol/default.nix b/pkgs/development/libraries/haskell/symbol/default.nix index 7b1c2d3821ce6..e5564b758ad08 100644 --- a/pkgs/development/libraries/haskell/symbol/default.nix +++ b/pkgs/development/libraries/haskell/symbol/default.nix @@ -2,12 +2,12 @@ cabal.mkDerivation (self: { pname = "symbol"; - version = "0.2.0"; - sha256 = "13vr6j3wkxbdbd27xklnidfkpkjwl0kldf69z470bm5indvaaxfd"; + version = "0.2.1"; + sha256 = "1g9rpz40v6wnmp671wvbbinzvvxkibdnny4i6ai28pn3sxa6fgkj"; buildDepends = [ deepseq syb ]; jailbreak = true; meta = { - homepage = "http://www.eecs.harvard.edu/~mainland/"; + homepage = "http://www.cs.drexel.edu/~mainland/"; description = "A 'Symbol' type for fast symbol comparison"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; From 06ad5b4c62a787e40360e5d62a120c2c51380b81 Mon Sep 17 00:00:00 2001 From: Arseniy Seroka Date: Tue, 17 Dec 2013 21:33:26 +0400 Subject: [PATCH 41/78] Add haskell alsa-mixer lib --- .../libraries/haskell/alsa-mixer/default.nix | 15 +++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 pkgs/development/libraries/haskell/alsa-mixer/default.nix diff --git a/pkgs/development/libraries/haskell/alsa-mixer/default.nix b/pkgs/development/libraries/haskell/alsa-mixer/default.nix new file mode 100644 index 0000000000000..4f9bd6f65d65a --- /dev/null +++ b/pkgs/development/libraries/haskell/alsa-mixer/default.nix @@ -0,0 +1,15 @@ +{ cabal, alsaLib, alsaCore, extensibleExceptions, c2hs }: + +cabal.mkDerivation (self: { + pname = "alsa-mixer"; + version = "0.1.2"; + sha256 = "081f3a62f83a269d72e0b0fac8bae8c81e9ec342d592fa25abe57f7206cf4414"; + buildDepends = [ extensibleExceptions alsaCore c2hs ]; + pkgconfigDepends = [ alsaLib ]; + meta = { + homepage = "http://hackage.haskell.org/package/alsa-mixer"; + description = "This package provides bindings to the ALSA simple mixer API."; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.stdenv.lib.platforms.linux; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index e3aabdf85c0a2..f420ced7dc6fa 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -530,6 +530,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x alsaCore = callPackage ../development/libraries/haskell/alsa-core {}; + alsaMixer = callPackage ../development/libraries/haskell/alsa-mixer {}; + alsaPcm = callPackage ../development/libraries/haskell/alsa-pcm {}; amqp = callPackage ../development/libraries/haskell/amqp {}; From 8b95f0ed78bdef17966ee7387c63200aacbd529a Mon Sep 17 00:00:00 2001 From: Arseniy Seroka Date: Tue, 17 Dec 2013 21:38:12 +0400 Subject: [PATCH 42/78] xmobar alsa support --- pkgs/applications/misc/xmobar/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/xmobar/default.nix b/pkgs/applications/misc/xmobar/default.nix index 7d4d2715d04a0..8ea034227d289 100644 --- a/pkgs/applications/misc/xmobar/default.nix +++ b/pkgs/applications/misc/xmobar/default.nix @@ -1,5 +1,5 @@ { cabal, filepath, libXrandr, mtl, parsec, regexCompat, stm, time -, utf8String, wirelesstools, X11, X11Xft +, utf8String, wirelesstools, X11, X11Xft, alsaCore, alsaMixer }: cabal.mkDerivation (self: { @@ -11,8 +11,8 @@ cabal.mkDerivation (self: { buildDepends = [ filepath mtl parsec regexCompat stm time utf8String X11 X11Xft ]; - extraLibraries = [ libXrandr wirelesstools ]; - configureFlags = "-fwith_xft -fwith_iwlib"; + extraLibraries = [ libXrandr wirelesstools alsaCore alsaMixer ]; + configureFlags = "-fwith_xft -fwith_iwlib -fwith_alsa"; meta = { homepage = "http://projects.haskell.org/xmobar/"; description = "A Minimalistic Text Based Status Bar"; From 678d7aada0cd4c55360373347fc23930f3d2f06d Mon Sep 17 00:00:00 2001 From: Arseniy Seroka Date: Sun, 29 Dec 2013 02:12:13 +0400 Subject: [PATCH 43/78] moc: fix mp3 playback and remove useless lib --- pkgs/applications/audio/moc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/moc/default.nix b/pkgs/applications/audio/moc/default.nix index de29f2d53e749..74ae3dcf22bb3 100644 --- a/pkgs/applications/audio/moc/default.nix +++ b/pkgs/applications/audio/moc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ncurses, pkgconfig, alsaLib, flac, libmad, speex, ffmpeg, libvorbis, mpc, libsndfile, jackaudio, db4, libav, libmodplug, timidity, libid3tag, libtool }: +{ stdenv, fetchurl, ncurses, pkgconfig, alsaLib, flac, libmad, speex, ffmpeg_0_10, libvorbis, mpc, libsndfile, jackaudio, db4, libmodplug, timidity, libid3tag, libtool }: stdenv.mkDerivation rec { name = "moc-${version}"; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { configurePhase = "./configure prefix=$out"; - buildInputs = [ ncurses pkgconfig alsaLib flac libmad speex ffmpeg libvorbis mpc libsndfile jackaudio db4 libav libmodplug timidity libid3tag libtool ]; + buildInputs = [ ncurses pkgconfig alsaLib flac libmad speex ffmpeg_0_10 libvorbis mpc libsndfile jackaudio db4 libmodplug timidity libid3tag libtool ]; meta = { description = "MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use."; From 5787fc071a9b9f2cd2143d9730802f80f0bc7e7d Mon Sep 17 00:00:00 2001 From: Arseniy Seroka Date: Thu, 2 Jan 2014 14:57:08 +0400 Subject: [PATCH 44/78] add lastfmsubmitd --- .../audio/lastfmsubmitd/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/applications/audio/lastfmsubmitd/default.nix diff --git a/pkgs/applications/audio/lastfmsubmitd/default.nix b/pkgs/applications/audio/lastfmsubmitd/default.nix new file mode 100644 index 0000000000000..314361329c75e --- /dev/null +++ b/pkgs/applications/audio/lastfmsubmitd/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, pythonPackages }: + +pythonPackages.buildPythonPackage rec { + name = "lastfmsubmitd-${version}"; + namePrefix = ""; + version = "1.0.6"; + + src = fetchurl { + url = "http://www.red-bean.com/decklin/lastfmsubmitd/lastfmsubmitd-${version}.tar.gz"; + sha256 = "c2636d5095a95167366bacd458624d67b046e060244fa54ba2c2e3efb79f9b0e"; + }; + + doCheck = false; + + installCommand = "python setup.py install --prefix=$out"; + + meta = { + homepage = "http://www.red-bean.com/decklin/lastfmsubmitd/"; + description = "An last.fm audio scrobbler and daemon"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 655c30cf73f03..7dcdac95fe2f1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8337,6 +8337,8 @@ let lastwatch = callPackage ../applications/audio/lastwatch { }; + lastfmsubmitd = callPackage ../applications/audio/lastfmsubmitd { }; + lbdb = callPackage ../tools/misc/lbdb { }; lci = callPackage ../applications/science/logic/lci {}; From 0a902761de7f3e2fc63f4ecf30d6f91e4e88a333 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:24:14 +0100 Subject: [PATCH 45/78] haskell-alsa-mixer: re-generate with cabal2nix --- .../libraries/haskell/alsa-mixer/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/haskell/alsa-mixer/default.nix b/pkgs/development/libraries/haskell/alsa-mixer/default.nix index 4f9bd6f65d65a..67ab0275e7885 100644 --- a/pkgs/development/libraries/haskell/alsa-mixer/default.nix +++ b/pkgs/development/libraries/haskell/alsa-mixer/default.nix @@ -1,14 +1,14 @@ -{ cabal, alsaLib, alsaCore, extensibleExceptions, c2hs }: +{ cabal, alsaCore, alsaLib, c2hs }: cabal.mkDerivation (self: { pname = "alsa-mixer"; version = "0.1.2"; sha256 = "081f3a62f83a269d72e0b0fac8bae8c81e9ec342d592fa25abe57f7206cf4414"; - buildDepends = [ extensibleExceptions alsaCore c2hs ]; - pkgconfigDepends = [ alsaLib ]; + buildDepends = [ alsaCore ]; + buildTools = [ c2hs ]; + extraLibraries = [ alsaLib ]; meta = { - homepage = "http://hackage.haskell.org/package/alsa-mixer"; - description = "This package provides bindings to the ALSA simple mixer API."; + description = "Bindings to the ALSA simple mixer API"; license = self.stdenv.lib.licenses.bsd3; platforms = self.stdenv.lib.platforms.linux; }; From 066abcc047e8fc67bf9c7a714594ebe6258f8140 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 12:24:25 +0100 Subject: [PATCH 46/78] xmobar: re-generate with cabal2nix --- pkgs/applications/misc/xmobar/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/xmobar/default.nix b/pkgs/applications/misc/xmobar/default.nix index 8ea034227d289..7eacaf15b6252 100644 --- a/pkgs/applications/misc/xmobar/default.nix +++ b/pkgs/applications/misc/xmobar/default.nix @@ -1,5 +1,5 @@ -{ cabal, filepath, libXrandr, mtl, parsec, regexCompat, stm, time -, utf8String, wirelesstools, X11, X11Xft, alsaCore, alsaMixer +{ cabal, alsaCore, alsaMixer, filepath, libXrandr, mtl, parsec +, regexCompat, stm, time, utf8String, wirelesstools, X11, X11Xft }: cabal.mkDerivation (self: { @@ -9,9 +9,10 @@ cabal.mkDerivation (self: { isLibrary = false; isExecutable = true; buildDepends = [ - filepath mtl parsec regexCompat stm time utf8String X11 X11Xft + alsaCore alsaMixer filepath mtl parsec regexCompat stm time + utf8String X11 X11Xft ]; - extraLibraries = [ libXrandr wirelesstools alsaCore alsaMixer ]; + extraLibraries = [ libXrandr wirelesstools ]; configureFlags = "-fwith_xft -fwith_iwlib -fwith_alsa"; meta = { homepage = "http://projects.haskell.org/xmobar/"; From 2f8fc8bb246674f0b3c8e9917dd8cc71af02a9eb Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 11 Jan 2014 14:24:04 +0000 Subject: [PATCH 47/78] direnv 2.2.0 --- pkgs/tools/misc/direnv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/direnv/default.nix b/pkgs/tools/misc/direnv/default.nix index 2850c35b720e2..8876cfa983a80 100644 --- a/pkgs/tools/misc/direnv/default.nix +++ b/pkgs/tools/misc/direnv/default.nix @@ -1,14 +1,14 @@ { fetchurl, stdenv, go }: let - version = "2.1.0"; + version = "2.2.0"; in stdenv.mkDerivation { name = "direnv-${version}"; src = fetchurl { url = "http://github.com/zimbatm/direnv/archive/v${version}.tar.gz"; name = "direnv-${version}.tar.gz"; - sha256 = "4dad14e53aa5a20fd11cdbb907c19a05f16464172af302981adb410bd691cefe"; + sha256 = "e718ec2eec4e3a6ff78938445fc9702d7835ccfc8fa90f4293e387ac1305bf98"; }; buildInputs = [ go ]; From 215931f5d08d9f70f085ae1588eceaa87324c4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 11 Jan 2014 15:40:16 +0100 Subject: [PATCH 48/78] gnome3.gnome_desktop: 3.11 -> 3.10 (use gnome3 stable) --- pkgs/desktops/gnome-3/desktop/gnome-desktop/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/desktops/gnome-3/desktop/gnome-desktop/default.nix b/pkgs/desktops/gnome-3/desktop/gnome-desktop/default.nix index c7326b552fd58..584705d658ef1 100644 --- a/pkgs/desktops/gnome-3/desktop/gnome-desktop/default.nix +++ b/pkgs/desktops/gnome-3/desktop/gnome-desktop/default.nix @@ -4,8 +4,8 @@ stdenv.mkDerivation rec { - majorVersion = "3.11"; - minorVersion = "2"; + majorVersion = "3.10"; + minorVersion = "1"; name = "gnome-desktop-${majorVersion}.${minorVersion}"; # this should probably be setuphook for glib @@ -15,10 +15,9 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnome/sources/gnome-desktop/${majorVersion}/${name}.tar.xz"; - sha256 = "0vsxgp77s0pmcq177lz310ync4c1n7cwb63163zm5g5xw69qc5d7"; + sha256 = "0hdvm909lbpnixqv11qdx9iaycx4dpxys46fa128bqp8alisgb0h"; }; - configureFlags = "--disable-scrollkeeper"; buildInputs = [ pkgconfig python libxml2Python libxslt which libX11 xkeyboard_config isocodes itstool wayland gtk3 glib intltool gnome_doc_utils libxkbfile gnome3.gsettings_desktop_schemas gobjectIntrospection ]; From ef94c2171c5c0aa9b30ac92cfb3ae8909c3ec310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 11 Jan 2014 17:28:57 +0100 Subject: [PATCH 49/78] Add gnome3.gnome_session --- .../gnome-3/core/gnome-session/default.nix | 29 +++++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/desktops/gnome-3/core/gnome-session/default.nix diff --git a/pkgs/desktops/gnome-3/core/gnome-session/default.nix b/pkgs/desktops/gnome-3/core/gnome-session/default.nix new file mode 100644 index 0000000000000..4042698618292 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/gnome-session/default.nix @@ -0,0 +1,29 @@ +{ fetchurl, stdenv, pkgconfig, gnome3, glib, dbus_glib, json_glib, upower +, libxslt, intltool, makeWrapper }: + + +stdenv.mkDerivation rec { + name = "gnome-session-3.10.1"; + + src = fetchurl { + url = "mirror://gnome/sources/gnome-session/3.10/${name}.tar.xz"; + sha256 = "1k59yss7r748nvr0cdjrqmx0zy26b93rfn66lsdg9fz60x77087n"; + }; + + buildInputs = with gnome3; + [ pkgconfig glib gnome_desktop gtk dbus_glib json_glib libxslt + gsettings_desktop_schemas upower intltool gconf makeWrapper ]; + + # TODO: dbus, gnome-shell, gnome-settings-daemon + + postInstall = '' + wrapProgram "$out/bin/gnome-session" \ + --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ + --prefix XDG_DATA_DIRS : "${gnome3.gsettings_desktop_schemas}/share:$out/share" + ''; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; + +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index 1100be9ce2595..b366b8b9a297c 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -35,6 +35,8 @@ rec { gnome_online_accounts = callPackage ./core/gnome-online-accounts { }; + gnome_session = callPackage ./core/gnome-session { }; + gnome_terminal = callPackage ./core/gnome-terminal { }; gnome_themes_standard = callPackage ./core/gnome-themes-standard { }; From b78871efa67df4259e73cf68f0f27ee23504b1a3 Mon Sep 17 00:00:00 2001 From: Vladimir Still Date: Fri, 10 Jan 2014 19:09:52 +0100 Subject: [PATCH 50/78] dmd: Add (D language compiler). --- pkgs/development/compilers/dmd/default.nix | 52 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/compilers/dmd/default.nix diff --git a/pkgs/development/compilers/dmd/default.nix b/pkgs/development/compilers/dmd/default.nix new file mode 100644 index 0000000000000..96a3d2abfc661 --- /dev/null +++ b/pkgs/development/compilers/dmd/default.nix @@ -0,0 +1,52 @@ +{ stdenv, fetchurl, gcc, unzip, curl }: + +stdenv.mkDerivation { + name = "dmd-2.064.2"; + + src = fetchurl { + url = http://downloads.dlang.org/releases/2013/dmd.2.064.2.zip; + sha256 = "1i0jdybigffwyb7c43j0c4aayxx3b93zzqrjxyw6zgp06yhi06pm"; + }; + + buildInputs = [ gcc unzip curl ]; + + configurePhase = ""; + patchPhase = '' + cp src/VERSION src/dmd/ + cp license.txt src/phobos/LICENSE_1_0.txt + ''; + buildPhase = '' + cd src/dmd + make -f posix.mak INSTALL_DIR=$out + export DMD=$PWD/dmd + cd ../druntime + make -f posix.mak INSTALL_DIR=$out DMD=$DMD + cd ../phobos + make -f posix.mak INSTALL_DIR=$out DMD=$DMD + cd ../.. + ''; + + installPhase = '' + cd src/dmd + tee dmd.conf.default << EOF + [Environment] + DFLAGS=-I$out/import -L-L$out/lib + EOF + + make -f posix.mak INSTALL_DIR=$out install + export DMD=$PWD/dmd + cd ../druntime + make -f posix.mak INSTALL_DIR=$out install + cd ../phobos + make -f posix.mak INSTALL_DIR=$out install + cd ../.. + ''; + + meta = { + description = "D language compiler"; + homepage = http://dlang.org/; + license = "open source, see included files"; + maintainers = with stdenv.lib.maintainers; [ vlstill ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7dcdac95fe2f1..760c3ead5aaa2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -802,6 +802,8 @@ let disper = callPackage ../tools/misc/disper { }; + dmd = callPackage ../development/compilers/dmd { }; + dmg2img = callPackage ../tools/misc/dmg2img { }; docbook2odf = callPackage ../tools/typesetting/docbook2odf { From 4918c1436bb011be0bd5dc5c80efc3d4a056b485 Mon Sep 17 00:00:00 2001 From: Vladimir Still Date: Fri, 10 Jan 2014 19:10:22 +0100 Subject: [PATCH 51/78] rdmd: Add (D language compiler helper). --- pkgs/development/compilers/rdmd/default.nix | 29 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/compilers/rdmd/default.nix diff --git a/pkgs/development/compilers/rdmd/default.nix b/pkgs/development/compilers/rdmd/default.nix new file mode 100644 index 0000000000000..9177ad5e25b55 --- /dev/null +++ b/pkgs/development/compilers/rdmd/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, writeText, lib, dmd }: + +stdenv.mkDerivation { + name = "rdmd-2.064"; + + src = fetchurl { + url = https://raw2.github.com/D-Programming-Language/tools/2.064/rdmd.d; + sha256 = "0b1g3ng6bkanvg00r6xb4ycpbh9x8b9dw589av665azxbcraqrs1"; + name = "rdmd-src"; + }; + + buildInputs = [ dmd ]; + + builder = writeText "drmd-builder.sh" '' + source $stdenv/setup + cp $src rdmd.d + dmd rdmd.d + mkdir -p $out/bin + cp rdmd $out/bin/ + ''; + + meta = { + description = "rdmd wrapper for D language compiler"; + homepage = http://dlang.org/rdmd.html; + license = lib.licenses.boost; + maintainers = with stdenv.lib.maintainers; [ vlstill ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 760c3ead5aaa2..1f280f94b6d06 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1744,6 +1744,8 @@ let rdiff_backup = callPackage ../tools/backup/rdiff-backup { }; + rdmd = callPackage ../development/compilers/rdmd { }; + ripmime = callPackage ../tools/networking/ripmime {}; rmlint = callPackage ../tools/misc/rmlint {}; From 531090d5de104492e34e7f76792c6595f6c92d4a Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Sat, 11 Jan 2014 15:24:54 +0800 Subject: [PATCH 52/78] add projectM 2.1.0 --- pkgs/applications/audio/projectm/default.nix | 51 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/applications/audio/projectm/default.nix diff --git a/pkgs/applications/audio/projectm/default.nix b/pkgs/applications/audio/projectm/default.nix new file mode 100644 index 0000000000000..2dd251ddd5bde --- /dev/null +++ b/pkgs/applications/audio/projectm/default.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchurl, pkgconfig, cmake +, glew, ftgl, ttf_bitstream_vera +, withQt ? true, qt4 +, withLibvisual ? false, libvisual, SDL +, withJack ? false, jackaudio +, withPulseAudio ? true, pulseaudio +}: + +assert withJack -> withQt; +assert withPulseAudio -> withQt; + +stdenv.mkDerivation { + name = "projectm-2.1.0"; + + meta = { + description = "Music Visualizer"; + homepage = "http://projectm.sourceforge.net/"; + license = stdenv.lib.licenses.lgpl21Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "mirror://sourceforge/projectm/2.1.0/projectM-complete-2.1.0-Source.tar.gz"; + sha256 = "1vh6jk68a0jdb6qwppb6f8cbgmhnv2ba3bcavzfd6sq06gq08cji"; + }; + + patchPhase = '' + sed -i 's:''${LIBVISUAL_PLUGINSDIR}:''${CMAKE_INSTALL_PREFIX}/lib/libvisual-0.4:' \ + src/projectM-libvisual/CMakeLists.txt + ''; + + nativeBuildInputs = [ pkgconfig cmake ]; + + cmakeFlags = '' + -DprojectM_FONT_MENU=${ttf_bitstream_vera}/share/fonts/truetype/VeraMono.ttf + -DprojectM_FONT_TITLE=${ttf_bitstream_vera}/share/fonts/truetype/Vera.ttf + -DINCLUDE-PROJECTM-TEST=OFF + -DINCLUDE-PROJECTM-QT=${if withQt then "ON" else "OFF"} + -DINCLUDE-PROJECTM-LIBVISUAL=${if withLibvisual then "ON" else "OFF"} + -DINCLUDE-PROJECTM-JACK=${if withJack then "ON" else "OFF"} + -DINCLUDE-PROJECTM-PULSEAUDIO=${if withPulseAudio then "ON" else "OFF"} + ''; + + buildInputs = with stdenv.lib; + [ glew ftgl ] + ++ optional withQt qt4 + ++ optionals withLibvisual [ libvisual SDL ] + ++ optional withJack jackaudio + ++ optional withPulseAudio pulseaudio + ; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1f280f94b6d06..4ff1634c15346 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1670,6 +1670,8 @@ let prey-bash-client = callPackage ../tools/security/prey { }; + projectm = callPackage ../applications/audio/projectm { }; + proxychains = callPackage ../tools/networking/proxychains { }; proxytunnel = callPackage ../tools/misc/proxytunnel { }; From d82530440f0ec408d33a18ff966de3376649d56c Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 10 Jan 2014 18:54:57 +0100 Subject: [PATCH 53/78] virt-manager: Update to 0.9.5 virtinst: Update to 0.600.4 --- pkgs/applications/virtualization/virt-manager/default.nix | 4 ++-- pkgs/applications/virtualization/virtinst/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix index de3e5c98d36ba..99628eeecb219 100644 --- a/pkgs/applications/virtualization/virt-manager/default.nix +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -3,14 +3,14 @@ with stdenv.lib; -let version = "0.9.1"; in +let version = "0.9.5"; in stdenv.mkDerivation rec { name = "virt-manager-${version}"; src = fetchurl { url = "http://virt-manager.et.redhat.com/download/sources/virt-manager/virt-manager-${version}.tar.gz"; - sha256 = "15e064167ba5ff84ce6fc8790081d61890430f2967f89886a84095a23e40094a"; + sha256 = "0gc06cdbq6c2a06l939516lvjii7lr0wng90kqgl1i5q5wlgnajx"; }; pythonPath = with pythonPackages; diff --git a/pkgs/applications/virtualization/virtinst/default.nix b/pkgs/applications/virtualization/virtinst/default.nix index bb8b7a1d0d99b..84600884e7b68 100644 --- a/pkgs/applications/virtualization/virtinst/default.nix +++ b/pkgs/applications/virtualization/virtinst/default.nix @@ -2,14 +2,14 @@ with stdenv.lib; -let version = "0.600.1"; in +let version = "0.600.4"; in stdenv.mkDerivation rec { name = "virtinst-${version}"; src = fetchurl { url = "http://virt-manager.org/download/sources/virtinst/virtinst-${version}.tar.gz"; - sha256 = "db342cf93aae1f23df02001bdb0b0cc2c5bf675dca37b4417f5a79bf5a374716"; + sha256 = "175laiy49dni8hzi0cn14bbsdsigvgr9h6d9z2bcvbpa29spldvf"; }; pythonPath = with pythonPackages; From 32e08f53ce906424bfe35c05bf890fb1ca34e16b Mon Sep 17 00:00:00 2001 From: Arseniy Seroka Date: Sat, 11 Jan 2014 17:38:06 +0400 Subject: [PATCH 54/78] spaceFM: add package --- pkgs/applications/misc/spacefm/default.nix | 24 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/applications/misc/spacefm/default.nix diff --git a/pkgs/applications/misc/spacefm/default.nix b/pkgs/applications/misc/spacefm/default.nix new file mode 100644 index 0000000000000..fa3423cd8c4c9 --- /dev/null +++ b/pkgs/applications/misc/spacefm/default.nix @@ -0,0 +1,24 @@ +{ pkgs, fetchurl, stdenv, gtk3, udev, desktop_file_utils, shared_mime_info, intltool, pkgconfig }: + +let + name = "spacefm-${version}"; + version = "0.9.2"; + +in stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url="https://github.com/IgnorantGuru/spacefm/blob/pkg/${version}/${name}.tar.xz?raw=true"; + sha256 ="3767137d74aa78597ffb42a6121784e91a4276efcd5d718b3793b9790f82268c"; + }; + + buildInputs = [ gtk3 udev desktop_file_utils shared_mime_info intltool pkgconfig ]; + + meta = { + description = "SpaceFM is a multi-panel tabbed file and desktop manager for Linux with built-in VFS, udev- or HAL-based device manager, customizable menu system, and bash integration."; + platforms = pkgs.lib.platforms.linux; + license = pkgs.lib.licenses.gpl3; + }; + +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ff1634c15346..5926f9845e2c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1872,6 +1872,8 @@ let boost = boost149; }; + spaceFM = callPackage ../applications/misc/spacefm { }; + squashfsTools = callPackage ../tools/filesystems/squashfs { }; sshfsFuse = callPackage ../tools/filesystems/sshfs-fuse { }; From 0223847b6af93846fa0d558cc9564be8bfe02410 Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Fri, 10 Jan 2014 01:02:31 +0400 Subject: [PATCH 55/78] yad: a nice zenity clone for creating GUI dialogs from the shell --- pkgs/tools/misc/yad/default.nix | 33 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/misc/yad/default.nix diff --git a/pkgs/tools/misc/yad/default.nix b/pkgs/tools/misc/yad/default.nix new file mode 100644 index 0000000000000..ed22f1a43a425 --- /dev/null +++ b/pkgs/tools/misc/yad/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, intltool, gtk2 }: + +stdenv.mkDerivation rec { + + name = "yad-0.25.1"; + + src = fetchurl { + url = "http://yad.googlecode.com/files/${name}.tar.xz"; + sha256 = "1pljs9799xa2w3y2vjg93gqkv76z0pjh947djd7179yq3kryb57a"; + }; + + configureFlags = [ + "--enable-icon-browser" + ]; + + buildInputs = [ gtk2 ]; + + nativeBuildInputs = [ pkgconfig intltool ]; + + meta = { + homepage = "http://code.google.com/p/yad/"; + description = "Yad (yet another dialog) is a GUI dialog tool for shell scripts"; + longDescription = '' + Yad (yet another dialog) is a GUI dialog tool for shell scripts. It is a + fork of Zenity with many improvements, such as custom buttons, additional + dialogs, pop-up menu in notification icon and more. + ''; + + platforms = with stdenv.lib.platforms; linux; + maintainers = with stdenv.lib.maintainers; [ smironov ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5926f9845e2c0..223f78971b4b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10092,6 +10092,8 @@ let weka = callPackage ../applications/science/math/weka { }; + yad = callPackage ../tools/misc/yad { }; + yacas = callPackage ../applications/science/math/yacas { }; speedcrunch = callPackage ../applications/science/math/speedcrunch { From 674f21c6683fd6e0febe9b5527a7af7cbd01e3ed Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Fri, 10 Jan 2014 13:50:10 +0400 Subject: [PATCH 56/78] yad: fix (remove) icon-theme.cache --- pkgs/tools/misc/yad/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/yad/default.nix b/pkgs/tools/misc/yad/default.nix index ed22f1a43a425..fcdf5095d70f3 100644 --- a/pkgs/tools/misc/yad/default.nix +++ b/pkgs/tools/misc/yad/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig intltool ]; + preFixup = "rm $out/share/icons/hicolor/icon-theme.cache"; + meta = { homepage = "http://code.google.com/p/yad/"; description = "Yad (yet another dialog) is a GUI dialog tool for shell scripts"; From 0209d478a8b350758c3c61b2344862f236d23d5a Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Thu, 9 Jan 2014 15:17:32 +0400 Subject: [PATCH 57/78] gtk-sharp-1: fix include problem --- .../libraries/gtk-sharp-1/default.nix | 5 +++- .../libraries/gtk-sharp-1/glib-include.patch | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/libraries/gtk-sharp-1/glib-include.patch diff --git a/pkgs/development/libraries/gtk-sharp-1/default.nix b/pkgs/development/libraries/gtk-sharp-1/default.nix index aad440bf67254..863ee6c038d6f 100644 --- a/pkgs/development/libraries/gtk-sharp-1/default.nix +++ b/pkgs/development/libraries/gtk-sharp-1/default.nix @@ -23,7 +23,10 @@ stdenv.mkDerivation { md5 = "2651d14fe77174ab20b8af53d150ee11"; }; - patches = [ ./dllmap-glue.patch ]; + patches = [ + ./dllmap-glue.patch + ./glib-include.patch + ]; buildInputs = [ pkgconfig mono glib pango gtk GConf libglade libgnomecanvas diff --git a/pkgs/development/libraries/gtk-sharp-1/glib-include.patch b/pkgs/development/libraries/gtk-sharp-1/glib-include.patch new file mode 100644 index 0000000000000..e8f4b0ef5af35 --- /dev/null +++ b/pkgs/development/libraries/gtk-sharp-1/glib-include.patch @@ -0,0 +1,24 @@ +diff -ru gtk-sharp-1.0.6.orig/glib/glue/list.c gtk-sharp-1.0.6/glib/glue/list.c +--- gtk-sharp-1.0.6.orig/glib/glue/list.c 2014-01-09 10:58:06.727352451 +0000 ++++ gtk-sharp-1.0.6/glib/glue/list.c 2014-01-09 11:00:34.256583614 +0000 +@@ -20,7 +20,7 @@ + */ + + +-#include ++#include + + /* Forward declarations */ + gpointer gtksharp_list_get_data (GList *l); +diff -ru gtk-sharp-1.0.6.orig/glib/glue/slist.c gtk-sharp-1.0.6/glib/glue/slist.c +--- gtk-sharp-1.0.6.orig/glib/glue/slist.c 2014-01-09 10:58:06.727352451 +0000 ++++ gtk-sharp-1.0.6/glib/glue/slist.c 2014-01-09 11:00:47.572695223 +0000 +@@ -20,7 +20,7 @@ + */ + + +-#include ++#include + + /* Forward declarations */ + gpointer gtksharp_slist_get_data (GSList *l); From 6b7105d456c968880a36879b9456aa97b6218b0c Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Thu, 9 Jan 2014 15:24:11 +0800 Subject: [PATCH 58/78] snd: update to 14.3 --- pkgs/applications/audio/snd/default.nix | 70 +++++++------------------ pkgs/applications/audio/snd/doc.patch | 62 ---------------------- pkgs/top-level/all-packages.nix | 12 +---- 3 files changed, 20 insertions(+), 124 deletions(-) delete mode 100644 pkgs/applications/audio/snd/doc.patch diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix index a49bfd9cccf4b..52cd2ad35ce1a 100644 --- a/pkgs/applications/audio/snd/default.nix +++ b/pkgs/applications/audio/snd/default.nix @@ -1,58 +1,26 @@ -args : -let - lib = args.lib; - fetchurl = args.fetchurl; - fullDepEntry = args.fullDepEntry; +{ stdenv, fetchurl, pkgconfig +, gtk2, alsaLib +, fftw, gsl +}: - version = lib.attrByPath ["version"] "9.4" args; - buildInputs = with args; [gtk glib pkgconfig - libXpm gmp gettext libX11 fftw] - ++ (lib.optional (args ? ruby) args.ruby) - ++ (lib.optional (args ? mesa) args.mesa) - ++ (lib.optional (args ? guile) args.guile) - ++ (lib.optional (args ? libtool) args.libtool) - ++ (lib.optional (args ? sndlib) args.sndlib) - ++ (lib.optional (args ? alsaLib) args.alsaLib) - ++ (lib.optional (args ? jackaudio) args.jackaudio) - ; - configureFlags = ["--with-gtk" "--with-xpm"] - ++ (lib.optional (args ? ruby) "--with-ruby" ) - ++ (lib.optional (args ? mesa) "--with-gl" ) - ++ (lib.optional (args ? guile) "--with-guile") - ++ (lib.optional (args ? sndlib) "--with-midi" ) - ++ (lib.optional (args ? alsaLib) "--with-alsa") - ++ (lib.optional (args ? jackaudio) "--with-jack" ) - ++ [ "--with-fftw" "--htmldir=$out/share/snd/html" "--with-doc-dir=$out/share/snd/html" ] - ; -in -rec { - src = fetchurl { - url = "mirror://sourceforge/snd/snd-${version}.tar.gz"; - sha256 = "0zqgfnkvkqxby1k74mwba1r4pb520glcsz5jjmpzm9m41nqnghmm"; - }; - - inherit buildInputs; - configureFlags = []; - - /* doConfigure should be specified separately */ - phaseNames = ["doConfigure" "preBuild" "makeDocsWork" - "doMakeInstall" "doForceShare"]; - - makeDocsWork = fullDepEntry '' - # hackish way to make html docs work - h="$out/share/snd/html"; mkdir -p "$h"; cp *.html "$h" - patch -p1 < ${./doc.patch} - sed "s@HTML-DIR@$h@" -i index.scm snd-help.c - '' ["defEnsureDir"]; - - preBuild = fullDepEntry ('' - export NIX_LDFLAGS="$NIX_LDFLAGS -L${args.libX11}/lib -lX11" - '') ["minInit" "doUnpack" "makeDocsWork"]; +stdenv.mkDerivation rec { + name = "snd-14.3"; - name = "snd-" + version; meta = { description = "Sound editor"; homepage = http://ccrma.stanford.edu/software/snd; - inherit src; + platforms = stdenv.lib.platforms.linux; }; + + src = fetchurl { + url = "mirror://sourceforge/snd/${name}.tar.gz"; + sha256 = "04shk34pza507kvm40dc6sdz5jz533z4q2h7m9hgqvw1r3f57ms6"; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ + gtk2 alsaLib + fftw gsl + ]; } diff --git a/pkgs/applications/audio/snd/doc.patch b/pkgs/applications/audio/snd/doc.patch deleted file mode 100644 index 4c40151e98812..0000000000000 --- a/pkgs/applications/audio/snd/doc.patch +++ /dev/null @@ -1,62 +0,0 @@ -diff --git a/index.scm b/index.scm -index 2148a58..713939c 100644 ---- a/index.scm -+++ b/index.scm -@@ -18,24 +18,7 @@ and if one is found, and the Snd documentation can be found, calls (html-program - (lambda (n) - ;; look for doc on current dir, then html dir, then global dir - ;; snd.html is what we'll search for -- (let ((dir (if (file-exists? "snd.html") -- (getcwd) -- (if (and (string? (html-dir)) -- (file-exists? (string-append (html-dir) "/snd.html"))) -- (html-dir) -- (if (file-exists? "/usr/share/doc/snd-9/snd.html") -- "/usr/share/doc/snd-9" -- (if (file-exists? "/usr/local/share/doc/snd-9/snd.html") -- "/usr/local/share/doc/snd-9" -- (if (file-exists? "/usr/doc/snd-9/snd.html") -- "/usr/doc/snd-9" -- (if (file-exists? "/usr/share/doc/snd-8/snd.html") -- "/usr/share/doc/snd-8" -- (if (file-exists? "/usr/local/share/doc/snd-8/snd.html") -- "/usr/local/share/doc/snd-8" -- (if (file-exists? "/usr/doc/snd-8/snd.html") -- "/usr/doc/snd-8" -- #f)))))))))) -+ (let (dir "HTML-DIR") - (if dir - (if (or (string=? (html-program) "netscape") - (string=? (html-program) "mozilla") -diff --git a/snd-help.c b/snd-help.c -index a6557e0..a40a02e 100644 ---- a/snd-help.c -+++ b/snd-help.c -@@ -3554,26 +3554,7 @@ static char *doc_files[DOC_DIRECTORIES] = { - - static char *html_directory(void) - { -- int i; -- if (mus_file_probe("snd.html")) -- return(mus_getcwd()); -- if (html_dir(ss)) -- { -- bool happy; -- char *hd = NULL; -- hd = (char *)CALLOC(snd_strlen(html_dir(ss)) + 16, sizeof(char)); -- sprintf(hd, html_dir(ss), "/snd.html"); -- happy = mus_file_probe(hd); -- FREE(hd); -- if (happy) return(copy_string(html_dir(ss))); -- } --#ifdef MUS_DEFAULT_DOC_DIR -- if (mus_file_probe(MUS_DEFAULT_DOC_DIR "/snd.html")) -- return(copy_string(MUS_DEFAULT_DOC_DIR "/snd.html")); --#endif -- for (i = 0; i < DOC_DIRECTORIES; i++) -- if (mus_file_probe(doc_files[i])) return(copy_string(doc_directories[i])); -- return(NULL); -+ return (copy_string ("HTML-DIR")); - } - - diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 223f78971b4b4..f6b00604239ec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8854,17 +8854,7 @@ let smartdeblur = callPackage ../applications/graphics/smartdeblur { }; - sndBase = lowPrio (builderDefsPackage (import ../applications/audio/snd) { - inherit fetchurl stdenv stringsWithDeps lib fftw; - inherit pkgconfig gmp gettext; - inherit (xlibs) libXpm libX11; - inherit gtk glib; - }); - - snd = sndBase.passthru.function { - inherit mesa libtool jackaudio alsaLib; - guile = guile_1_8; - }; + snd = callPackage ../applications/audio/snd { }; shntool = callPackage ../applications/audio/shntool { }; From a00e382e237e31d4dea8fc158bbea006dffa4edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 11 Jan 2014 19:56:55 +0100 Subject: [PATCH 59/78] wineStable: maintenance update 1.6.1 -> .2, use lcms2 lcms2 is now supported according to the announcement, so I switched to it. Tested on a steam game ;-) --- pkgs/misc/emulators/wine/stable.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/misc/emulators/wine/stable.nix b/pkgs/misc/emulators/wine/stable.nix index 5bec6a310d196..c0643c78a59ae 100644 --- a/pkgs/misc/emulators/wine/stable.nix +++ b/pkgs/misc/emulators/wine/stable.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, xlibs, flex, bison, mesa, mesa_noglu, alsaLib -, ncurses, libpng, libjpeg, lcms, freetype, fontconfig, fontforge +, ncurses, libpng, libjpeg, lcms2, freetype, fontconfig, fontforge , libxml2, libxslt, openssl, gnutls, cups, libdrm, makeWrapper }: @@ -7,12 +7,12 @@ assert stdenv.isLinux; assert stdenv.gcc.gcc != null; let - version = "1.6.1"; + version = "1.6.2"; name = "wine-${version}"; src = fetchurl { url = "mirror://sourceforge/wine/${name}.tar.bz2"; - sha256 = "0k1qb8hhaf5mbb3jk0a37jx93mvlxpk5c4dslxhalp2mic42rg6m"; + sha256 = "1gmc0ljgfz3qy50mdxcwwjcr2yrpz54jcs2hdszsrk50wpnrxazh"; }; gecko = fetchurl { @@ -38,7 +38,7 @@ in stdenv.mkDerivation rec { xlibs.xlibs flex bison xlibs.libXi mesa mesa_noglu.osmesa xlibs.libXcursor xlibs.libXinerama xlibs.libXrandr xlibs.libXrender xlibs.libXxf86vm xlibs.libXcomposite - alsaLib ncurses libpng libjpeg lcms fontforge + alsaLib ncurses libpng libjpeg lcms2 fontforge libxml2 libxslt openssl gnutls cups makeWrapper ]; From b5bf69b447d53677d21e138c61fa0fe4f06b5ce6 Mon Sep 17 00:00:00 2001 From: Emil Rangden Date: Thu, 12 Dec 2013 15:50:57 +0100 Subject: [PATCH 60/78] gloss-raster: new package --- .../libraries/haskell/gloss-raster/default.nix | 14 ++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/libraries/haskell/gloss-raster/default.nix diff --git a/pkgs/development/libraries/haskell/gloss-raster/default.nix b/pkgs/development/libraries/haskell/gloss-raster/default.nix new file mode 100644 index 0000000000000..a055dd5adf24c --- /dev/null +++ b/pkgs/development/libraries/haskell/gloss-raster/default.nix @@ -0,0 +1,14 @@ +{ cabal, gloss, repa, llvm }: + +cabal.mkDerivation (self: { + pname = "gloss-raster"; + version = "1.8.1.1"; + sha256 = "0qqk2fizmv1zdvi8lljxiqdwlmfzni4qzsdvm2jbvgg5qjx9l9qp"; + buildDepends = [ gloss repa llvm ]; + meta = { + homepage = "http://gloss.ouroborus.net"; + description = "Parallel rendering of raster images"; + license = self.stdenv.lib.licenses.mit; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index f420ced7dc6fa..ed5056349bc16 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1128,6 +1128,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x gloss = callPackage ../development/libraries/haskell/gloss {}; + gloss-raster = callPackage ../development/libraries/haskell/gloss-raster {}; + glossAccelerate = callPackage ../development/libraries/haskell/gloss-accelerate {}; glossRasterAccelerate = callPackage ../development/libraries/haskell/gloss-raster-accelerate {}; From 7ec465a5ccc3e34647b597e83d69b02cba50967c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 11 Jan 2014 20:01:55 +0100 Subject: [PATCH 61/78] gloss-raster: fix attribute name --- pkgs/top-level/haskell-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index ed5056349bc16..11615bc3e5ede 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1128,10 +1128,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x gloss = callPackage ../development/libraries/haskell/gloss {}; - gloss-raster = callPackage ../development/libraries/haskell/gloss-raster {}; - glossAccelerate = callPackage ../development/libraries/haskell/gloss-accelerate {}; + glossRaster = callPackage ../development/libraries/haskell/gloss-raster {}; + glossRasterAccelerate = callPackage ../development/libraries/haskell/gloss-raster-accelerate {}; glpkHs = callPackage ../development/libraries/haskell/glpk-hs {}; From 98d2f7ea454fa09adfd16ac54bb90bd72eb9025c Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Wed, 8 Jan 2014 16:06:08 +0800 Subject: [PATCH 62/78] sip: update to 4.15.4 and add python3 support --- .../{python-sip => sip}/default.nix | 19 +++++++++---------- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 5 +++++ 3 files changed, 15 insertions(+), 11 deletions(-) rename pkgs/development/python-modules/{python-sip => sip}/default.nix (59%) diff --git a/pkgs/development/python-modules/python-sip/default.nix b/pkgs/development/python-modules/sip/default.nix similarity index 59% rename from pkgs/development/python-modules/python-sip/default.nix rename to pkgs/development/python-modules/sip/default.nix index 6d79cf53a6b54..72693a0b5d306 100644 --- a/pkgs/development/python-modules/python-sip/default.nix +++ b/pkgs/development/python-modules/sip/default.nix @@ -1,28 +1,27 @@ { stdenv, fetchurl, python }: stdenv.mkDerivation rec { - name = "sip-4.14.6"; - + name = "sip-4.15.4"; + src = fetchurl { - urls = [ - "http://www.riverbankcomputing.co.uk/static/Downloads/sip4/${name}.tar.gz" - "http://pkgs.fedoraproject.org/repo/pkgs/sip/${name}.tar.gz/d6493b9f0a7911566545f694327314c4/${name}.tar.gz" - ]; - sha256 = "1bwdd5xhrx8dx8rr86r043ddlbg7gd1vh0pm2nxw5l1yprwa7paa"; + url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz"; + sha256 = "0a12lmqkf342yg42ygnjm1fyldcx9pzhy7z68p4ms4ydfcl78jsr"; }; configurePhase = stdenv.lib.optionalString stdenv.isDarwin '' # prevent sip from complaining about python not being built as a framework sed -i -e 1564,1565d siputils.py '' + '' - python ./configure.py -d $out/lib/${python.libPrefix}/site-packages \ + ${python.executable} ./configure.py \ + -d $out/lib/${python.libPrefix}/site-packages \ -b $out/bin -e $out/include ''; - + buildInputs = [ python ]; - + meta = with stdenv.lib; { description = "Creates C++ bindings for Python modules"; + homepage = "http://www.riverbankcomputing.co.uk/"; license = licenses.gpl2Plus; maintainers = with maintainers; [ lovek323 sander urkud ]; platforms = platforms.all; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6b00604239ec..8c74a04f9b6d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6189,7 +6189,7 @@ let rhpl = callPackage ../development/python-modules/rhpl { }; - sip = callPackage ../development/python-modules/python-sip { }; + sip = callPackage ../development/python-modules/sip { }; pyqt4 = callPackage ../development/python-modules/pyqt { stdenv = if stdenv.isDarwin diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cf8d970dfd0e8..a9c6784987629 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -121,6 +121,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { inherit python buildPythonPackage pygobject pycairo; }; + sip = import ../development/python-modules/sip { + inherit (pkgs) stdenv fetchurl; + inherit python; + }; + # packages defined here aafigure = buildPythonPackage rec { From 501008ad6f742c40888ef2b9ddf983373cd8d38a Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Wed, 8 Jan 2014 16:39:05 +0800 Subject: [PATCH 63/78] pyqt4: update to 4.10.3 and add python3 support also add python3 support for dbus-python --- .../pyqt/{default.nix => 4.x.nix} | 21 ++++++++----------- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 12 +++++++++++ 3 files changed, 22 insertions(+), 13 deletions(-) rename pkgs/development/python-modules/pyqt/{default.nix => 4.x.nix} (73%) diff --git a/pkgs/development/python-modules/pyqt/default.nix b/pkgs/development/python-modules/pyqt/4.x.nix similarity index 73% rename from pkgs/development/python-modules/pyqt/default.nix rename to pkgs/development/python-modules/pyqt/4.x.nix index 7d9679349e8e1..ab870492da611 100644 --- a/pkgs/development/python-modules/pyqt/default.nix +++ b/pkgs/development/python-modules/pyqt/4.x.nix @@ -1,32 +1,29 @@ { stdenv, fetchurl, python, sip, qt4, pythonDBus, pkgconfig, lndir, makeWrapper }: stdenv.mkDerivation rec { - name = "PyQt-x11-gpl-4.10.1"; - + name = "PyQt-x11-gpl-4.10.3"; + src = fetchurl { - urls = [ - "http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/${name}.tar.gz" - "http://pkgs.fedoraproject.org/lookaside/pkgs/PyQt4/PyQt-x11-gpl-4.10.1.tar.gz/e5973c4ec0b0469f329bc00209d2ad9c/PyQt-x11-gpl-4.10.1.tar.gz" - ]; - sha256 = "05psk23x6bc83hrkw7h88a14jxhvfbxms0c8yrdar8xqvkv8cdb2"; + url = "mirror://sourceforge/pyqt/PyQt4/PyQt-4.10.3/PyQt-x11-gpl-4.10.3.tar.gz"; + sha256 = "0c7nifx3w0b9w1k0g9dvav1rv1lvd7awmq0zkqn3n8clyfzbw4x7"; }; - + configurePhase = '' mkdir -p $out lndir ${pythonDBus} $out export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages - + substituteInPlace configure.py \ --replace 'install_dir=pydbusmoddir' "install_dir='$out/lib/${python.libPrefix}/site-packages/dbus/mainloop'" - + configureFlagsArray=( \ --confirm-license --bindir $out/bin \ --destdir $out/lib/${python.libPrefix}/site-packages \ --plugin-destdir $out/lib/qt4/plugins --sipdir $out/share/sip \ --dbus=$out/include/dbus-1.0 --verbose) - python configure.py $configureFlags "''${configureFlagsArray[@]}" + ${python.executable} configure.py $configureFlags "''${configureFlagsArray[@]}" ''; buildInputs = [ python pkgconfig makeWrapper qt4 lndir ]; @@ -40,7 +37,7 @@ stdenv.mkDerivation rec { ''; # */ enableParallelBuilding = true; - + meta = { description = "Python bindings for Qt"; license = "GPL"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c74a04f9b6d1..0501d18ebee47 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6191,7 +6191,7 @@ let sip = callPackage ../development/python-modules/sip { }; - pyqt4 = callPackage ../development/python-modules/pyqt { + pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix { stdenv = if stdenv.isDarwin then clangStdenv else stdenv; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a9c6784987629..60b7e00f019d6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -57,6 +57,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { blivet = callPackage ../development/python-modules/blivet { }; + dbus = import ../development/python-modules/dbus { + inherit (pkgs) stdenv fetchurl pkgconfig dbus dbus_glib dbus_tools; + inherit python; + }; + ipython = import ../shells/ipython { inherit (pkgs) stdenv fetchurl sip pyqt4; inherit buildPythonPackage pythonPackages; @@ -121,6 +126,13 @@ pythonPackages = modules // import ./python-packages-generated.nix { inherit python buildPythonPackage pygobject pycairo; }; + pyqt4 = import ../development/python-modules/pyqt/4.x.nix { + inherit (pkgs) stdenv fetchurl pkgconfig qt4 makeWrapper; + inherit (pkgs.xorg) lndir; + inherit python sip; + pythonDBus = dbus; + }; + sip = import ../development/python-modules/sip { inherit (pkgs) stdenv fetchurl; inherit python; From 7d4d3536f72ca0bd4854fad76dd072cf21186938 Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Sat, 4 Jan 2014 01:13:26 +0100 Subject: [PATCH 64/78] connman: new packages ConnMan v1.20 and connman-ui --- lib/maintainers.nix | 1 + nixos/modules/misc/ids.nix | 1 + nixos/modules/module-list.nix | 1 + nixos/modules/services/networking/connman.nix | 92 +++++++++++++++++++ pkgs/tools/networking/connman/default.nix | 59 ++++++++++++ pkgs/tools/networking/connmanui/default.nix | 28 ++++++ pkgs/top-level/all-packages.nix | 4 + 7 files changed, 186 insertions(+) create mode 100644 nixos/modules/services/networking/connman.nix create mode 100644 pkgs/tools/networking/connman/default.nix create mode 100644 pkgs/tools/networking/connmanui/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index f81bebd9f89a0..de8e617b322f1 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -36,6 +36,7 @@ lovek323 = "Jason O'Conal "; ludo = "Ludovic Courtès "; marcweber = "Marc Weber "; + matejc = "Matej Cotman "; modulistic = "Pablo Costa "; mornfall = "Petr Ročkai "; ocharles = "Oliver Charles "; diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index 6f2666e4ae548..82041b3f954ee 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -197,6 +197,7 @@ minidlna = 91; haproxy = 92; openldap = 93; + connman = 94; # When adding a gid, make sure it doesn't match an existing uid. diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 684850df2aeca..7f8d7172dc4d9 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -147,6 +147,7 @@ ./services/networking/avahi-daemon.nix ./services/networking/bind.nix ./services/networking/bitlbee.nix + ./services/networking/connman.nix ./services/networking/cntlm.nix ./services/networking/chrony.nix ./services/networking/ddclient.nix diff --git a/nixos/modules/services/networking/connman.nix b/nixos/modules/services/networking/connman.nix new file mode 100644 index 0000000000000..6e36e656830a7 --- /dev/null +++ b/nixos/modules/services/networking/connman.nix @@ -0,0 +1,92 @@ +{ config, pkgs, ... }: + +with pkgs.lib; +with pkgs; + +let + cfg = config.networking.connman; + +in { + + ###### interface + + options = { + + networking.connman = { + + enable = mkOption { + type = types.bool; + default = false; + description = '' + Whether to use ConnMan for managing your network connections. + ''; + }; + + }; + + }; + + ###### implementation + + config = mkIf cfg.enable { + + assertions = [{ + assertion = config.networking.useDHCP == false; + message = "You can not use services.networking.connman with services.networking.useDHCP"; + }{ + assertion = config.networking.wireless.enable == true; + message = "You must use services.networking.connman with services.networking.wireless"; + }{ + assertion = config.networking.networkmanager.enable == false; + message = "You can not use services.networking.connman with services.networking.networkmanager"; + }]; + + environment.systemPackages = [ connman ]; + + systemd.services."connman" = { + description = "Connection service"; + wantedBy = [ "multi-user.target" ]; + after = [ "syslog.target" ]; + serviceConfig = { + Type = "dbus"; + BusName = "net.connman"; + Restart = "on-failure"; + ExecStart = "${pkgs.connman}/sbin/connmand --nodaemon"; + StandardOutput = "null"; + }; + }; + + systemd.services."connman-vpn" = { + description = "ConnMan VPN service"; + wantedBy = [ "multi-user.target" ]; + after = [ "syslog.target" ]; + serviceConfig = { + Type = "dbus"; + BusName = "net.connman.vpn"; + ExecStart = "${pkgs.connman}/sbin/connman-vpnd -n"; + StandardOutput = "null"; + }; + }; + + systemd.services."net-connman-vpn" = { + description = "D-BUS Service"; + serviceConfig = { + Name = "net.connman.vpn"; + ExecStart = "${pkgs.connman}/sbin/connman-vpnd -n"; + User = "root"; + SystemdService = "connman-vpn.service"; + }; + }; + + networking = { + useDHCP = false; + wireless.enable = true; + networkmanager.enable = false; + }; + + powerManagement.resumeCommands = '' + systemctl restart connman + ''; + + }; +} diff --git a/pkgs/tools/networking/connman/default.nix b/pkgs/tools/networking/connman/default.nix new file mode 100644 index 0000000000000..9a4bab655570a --- /dev/null +++ b/pkgs/tools/networking/connman/default.nix @@ -0,0 +1,59 @@ +{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, openconnect, file, + openvpn, vpnc, glib, dbus, iptables, gnutls, policykit, polkit, + wpa_supplicant, readline6, pptp, ppp, tree }: + +stdenv.mkDerivation { + name = "connman-1.20"; + src = fetchgit { + url = "git://git.kernel.org/pub/scm/network/connman/connman.git"; + rev = "8047f3d051b32d38ac0b1e78296b482368728ec6"; + sha256 = "0hb03rzrspgry8z43x8x76vlq1hdq2wggkk7wbidavnqhpmz7dxz"; + }; + + buildInputs = [ autoconf automake libtool pkgconfig openconnect polkit + file openvpn vpnc glib dbus iptables gnutls policykit + wpa_supplicant readline6 pptp ppp tree ]; + + preConfigure = '' + export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant + ./bootstrap + sed -i "s/\/usr\/bin\/file/file/g" ./configure + substituteInPlace configure --replace /usr/sbin/pptp ${pptp}/sbin/pptp + substituteInPlace configure --replace /usr/sbin/pppd ${ppp}/sbin/pppd + ''; + + configureFlags = [ + "--sysconfdir=\${out}/etc" + "--localstatedir=/var" + "--with-dbusconfdir=\${out}/etc" + "--with-dbusdatadir=\${out}/usr/share" + "--disable-maintainer-mode" + "--enable-openconnect=builtin" + "--with-openconnect=${openconnect}/sbin/openconnect" + "--enable-openvpn=builtin" + "--with-openvpn=${openvpn}/sbin/openvpn" + "--enable-vpnc=builtin" + "--with-vpnc=${vpnc}/sbin/vpnc" + "--enable-session-policy-local=builtin" + "--enable-client" + "--enable-bluetooth" + "--enable-wifi" + "--enable-polkit" + "--enable-tools" + "--enable-datafiles" + "--enable-pptp" + ]; + + postInstall = '' + cp ./client/connmanctl $out/sbin/connmanctl + ''; + + meta = { + description = "The ConnMan project provides a daemon for managing internet connections"; + homepage = "https://connman.net/"; + maintainers = [ stdenv.lib.maintainers.matejc ]; + # tested only on linux, might work on others also + platforms = stdenv.lib.platforms.linux; + license = stdenv.lib.licenses.gpl2; + }; +} diff --git a/pkgs/tools/networking/connmanui/default.nix b/pkgs/tools/networking/connmanui/default.nix new file mode 100644 index 0000000000000..52860c391e030 --- /dev/null +++ b/pkgs/tools/networking/connmanui/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchgit, autoconf, automake, libtool, glib, gtk3, dbus, pkgconfig, file, intltool, connman }: + +stdenv.mkDerivation { + name = "connmanui-b838e640eddb83d296fb6d146ce756066d37c43b"; + src = fetchgit { + url = "git://github.com/tbursztyka/connman-ui.git"; + rev = "973879df2c4a556e5f49d808a88a6a5faba78c73"; + sha256 = "11ps52dn0ws978vv00yrymfvv534v1i9qqx5w93191qjcpjrwj6y"; + }; + + buildInputs = [ autoconf automake libtool glib gtk3 dbus pkgconfig file intltool connman ]; + + preConfigure = '' + set -e + ./autogen.sh + sed -i "s/\/usr\/bin\/file/file/g" ./configure + ''; + + configureScript = "./configure"; + + meta = { + description = "A full-featured GTK based trayicon UI for ConnMan"; + homepage = "https://github.com/tbursztyka/connman-ui"; + maintainers = [ stdenv.lib.maintainers.matejc ]; + platforms = stdenv.lib.platforms.linux; + license = stdenv.lib.licenses.gpl2; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0501d18ebee47..510ffe307f649 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -685,6 +685,10 @@ let conspy = callPackage ../os-specific/linux/conspy {}; + connman = callPackage ../tools/networking/connman { }; + + connmanui = callPackage ../tools/networking/connmanui { }; + convertlit = callPackage ../tools/text/convertlit { }; collectd = callPackage ../tools/system/collectd { }; From e1f363350a81158c52ddfe38f54723551cf0c556 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sat, 11 Jan 2014 21:17:17 +0100 Subject: [PATCH 65/78] connman-vpn and connman-vpn dbus servise should start after connman service --- nixos/modules/services/networking/connman.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/connman.nix b/nixos/modules/services/networking/connman.nix index 6e36e656830a7..2b26fe88129b2 100644 --- a/nixos/modules/services/networking/connman.nix +++ b/nixos/modules/services/networking/connman.nix @@ -60,6 +60,7 @@ in { description = "ConnMan VPN service"; wantedBy = [ "multi-user.target" ]; after = [ "syslog.target" ]; + before = [ "connman" ]; serviceConfig = { Type = "dbus"; BusName = "net.connman.vpn"; @@ -72,6 +73,7 @@ in { description = "D-BUS Service"; serviceConfig = { Name = "net.connman.vpn"; + before = [ "connman" ]; ExecStart = "${pkgs.connman}/sbin/connman-vpnd -n"; User = "root"; SystemdService = "connman-vpn.service"; From dca9e47e00f8fa4e1df4c45e55814b5e6978070d Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sat, 11 Jan 2014 21:18:10 +0100 Subject: [PATCH 66/78] update: connman-ui to latest --- pkgs/tools/networking/connmanui/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/connmanui/default.nix b/pkgs/tools/networking/connmanui/default.nix index 52860c391e030..62be5bf14e575 100644 --- a/pkgs/tools/networking/connmanui/default.nix +++ b/pkgs/tools/networking/connmanui/default.nix @@ -4,8 +4,8 @@ stdenv.mkDerivation { name = "connmanui-b838e640eddb83d296fb6d146ce756066d37c43b"; src = fetchgit { url = "git://github.com/tbursztyka/connman-ui.git"; - rev = "973879df2c4a556e5f49d808a88a6a5faba78c73"; - sha256 = "11ps52dn0ws978vv00yrymfvv534v1i9qqx5w93191qjcpjrwj6y"; + rev = "e4a8ddcca0870eb2ece5a7e3ea0296de9c86e5b2"; + sha256 = "0rml52v81s7hr0g6qbj5bamli08kn66hay84qicx8sy8679wg443"; }; buildInputs = [ autoconf automake libtool glib gtk3 dbus pkgconfig file intltool connman ]; From f9ca17d4b175a35b738c12db9406a8c2d4cd2274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 11 Jan 2014 21:39:47 +0100 Subject: [PATCH 67/78] gstreamer.libav.withSystemLibav: default to true as agreed on #1403 --- pkgs/development/libraries/gstreamer/libav/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index d539811462cc6..47be4c8f4a059 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, python, yasm , gst-plugins-base, orc, bzip2 -, withSystemLibav ? false, libav ? null +, withSystemLibav ? true, libav ? null }: assert withSystemLibav -> libav != null; From aed957bae710a77c000d01e6aba934f1b3008d0a Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Thu, 9 Jan 2014 00:46:47 +0100 Subject: [PATCH 68/78] virt-manager: Fix error: 'ImportError: No module named libvirt' The problem was that libvirt 1.2.0 no longer includes the python bindings; it is a separate package now. --- .../virtualization/virt-manager/default.nix | 8 +++---- pkgs/top-level/python-packages.nix | 24 ++++++++++++++++++- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix index 99628eeecb219..c205a09baf4b1 100644 --- a/pkgs/applications/virtualization/virt-manager/default.nix +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pythonPackages, intltool, libvirt, libxml2Python, curl, +{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl, python, makeWrapper, virtinst, pyGtkGlade, pythonDBus, gnome_python, gtkvnc, vte}: with stdenv.lib; @@ -18,13 +18,13 @@ stdenv.mkDerivation rec { paste_deploy m2crypto ipy boto_1_9 twisted sqlalchemy_migrate distutils_extra simplejson readline glance cheetah lockfile httplib2 # !!! should libvirt be a build-time dependency? Note that - # libxml2Python is a dependency of libvirt.py. + # libxml2Python is a dependency of libvirt.py. libvirt libxml2Python urlgrabber virtinst pyGtkGlade pythonDBus gnome_python gtkvnc vte ]; buildInputs = - [ pythonPackages.python + [ pythonPackages.python pythonPackages.wrapPython pythonPackages.mox pythonPackages.urlgrabber @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { ] ++ pythonPath; buildPhase = "make"; - + nativeBuildInputs = [ makeWrapper pythonPackages.wrapPython ]; # patch the runner script in order to make wrapPythonPrograms work and run the program using a syscall diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 60b7e00f019d6..18d323111739c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8195,7 +8195,29 @@ pythonPackages = modules // import ./python-packages-generated.nix { description = "A logging replacement for Python"; license = pkgs.lib.licenses.bsd3; }; - }; + }; + + libvirt = pkgs.stdenv.mkDerivation rec { + name = "libvirt-python-${version}"; + version = "1.2.0"; + + src = fetchurl { + url = "http://libvirt.org/sources/python/${name}.tar.gz"; + sha256 = "0azml1yv9iqnpj4sdg1wwsa70q7kb06lv85p63qwyd8vrd0y7rrg"; + }; + + buildInputs = [ python pkgs.pkgconfig pkgs.libvirt lxml ]; + + buildPhase = "python setup.py build"; + + installPhase = "python setup.py install --prefix=$out"; + + meta = { + homepage = http://www.libvirt.org/; + description = "libvirt Python bindings"; + license = "LGPLv2"; + }; + }; # python2.7 specific eggs } // pkgs.lib.optionalAttrs (python.majorVersion == "2.7") { From 4ede302207b728e94bc4d24d2d783f49b69e086b Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 10 Jan 2014 20:43:55 +0100 Subject: [PATCH 69/78] virt-manager: Add graphical support for the Spice protocol --- .../virtualization/virt-manager/default.nix | 8 ++- .../libraries/spice-gtk/default.nix | 55 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 pkgs/development/libraries/spice-gtk/default.nix diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix index c205a09baf4b1..9eee8c2ca4eaa 100644 --- a/pkgs/applications/virtualization/virt-manager/default.nix +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -1,5 +1,7 @@ -{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl, - python, makeWrapper, virtinst, pyGtkGlade, pythonDBus, gnome_python, gtkvnc, vte}: +{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl, python +, makeWrapper, virtinst, pyGtkGlade, pythonDBus, gnome_python, gtkvnc, vte +, spiceSupport ? true, spice_gtk +}: with stdenv.lib; @@ -21,7 +23,7 @@ stdenv.mkDerivation rec { # libxml2Python is a dependency of libvirt.py. libvirt libxml2Python urlgrabber virtinst pyGtkGlade pythonDBus gnome_python gtkvnc vte - ]; + ] ++ optional spiceSupport spice_gtk; buildInputs = [ pythonPackages.python diff --git a/pkgs/development/libraries/spice-gtk/default.nix b/pkgs/development/libraries/spice-gtk/default.nix new file mode 100644 index 0000000000000..60bf24dfd7844 --- /dev/null +++ b/pkgs/development/libraries/spice-gtk/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, pkgconfig, gtk, spice_protocol, intltool, celt_0_5_1 +, openssl, pulseaudio, pixman, gobjectIntrospection, libjpeg_turbo, zlib +, cyrus_sasl, python, pygtk, autoconf, automake, libtool }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "spice-gtk-0.22"; + + src = fetchurl { + url = "http://www.spice-space.org/download/gtk/${name}.tar.bz2"; + sha256 = "0fpsn6qhy9a701lmd4yym6qz6zhpp8xp6vw42al0b4592pcybs85"; + }; + + buildInputs = [ + gtk spice_protocol celt_0_5_1 openssl pulseaudio pixman gobjectIntrospection + libjpeg_turbo zlib cyrus_sasl python pygtk + ]; + + nativeBuildInputs = [ pkgconfig intltool libtool autoconf automake ]; + + NIX_CFLAGS_COMPILE = "-fno-stack-protector"; + + preConfigure = '' + substituteInPlace gtk/Makefile.am \ + --replace '=codegendir pygtk-2.0' '=codegendir pygobject-2.0' + + autoreconf -v --force --install + intltoolize -f + ''; + + configureFlags = [ + "--disable-maintainer-mode" + "--with-gtk=2.0" + ]; + + dontDisableStatic = true; # Needed by the coroutine test + + enableParallelBuilding = true; + + meta = { + description = "A GTK+2 and GTK+3 SPICE widget"; + longDescription = '' + spice-gtk is a GTK+2 and GTK+3 SPICE widget. It features glib-based + objects for SPICE protocol parsing and a gtk widget for embedding + the SPICE display into other applications such as virt-manager. + Python bindings are available too. + ''; + + homepage = http://www.spice-space.org/; + license = licenses.lgpl21; + + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac8ef80eec8c9..5d450aff88db9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5741,6 +5741,8 @@ let inherit (pythonPackages) pyparsing; }; + spice_gtk = callPackage ../development/libraries/spice-gtk { }; + spice_protocol = callPackage ../development/libraries/spice-protocol { }; sratom = callPackage ../development/libraries/audio/sratom { }; From 3214ffdf710b78c7604925c3e83261a5adc0c84c Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Sat, 11 Jan 2014 21:56:02 +0000 Subject: [PATCH 70/78] haskellPackages.scientific: Enable tests --- pkgs/development/libraries/haskell/scientific/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/libraries/haskell/scientific/default.nix b/pkgs/development/libraries/haskell/scientific/default.nix index 646687af96a1e..24c0759d6e947 100644 --- a/pkgs/development/libraries/haskell/scientific/default.nix +++ b/pkgs/development/libraries/haskell/scientific/default.nix @@ -8,7 +8,6 @@ cabal.mkDerivation (self: { sha256 = "0xwxds884pqywjbc4j6qkx27nbi64sihig8ps9v884sk08021wrp"; buildDepends = [ deepseq hashable text ]; testDepends = [ smallcheck tasty tastySmallcheck text ]; - doCheck = false; meta = { homepage = "https://github.com/basvandijk/scientific"; description = "Arbitrary-precision floating-point numbers represented using scientific notation"; From 422f2032ab057828f0bfed20902f3a1f54c540a4 Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Sat, 11 Jan 2014 22:01:21 +0000 Subject: [PATCH 71/78] services.postgresql: Hint to use mkForce for authentication This fixes #1395 --- nixos/modules/services/databases/postgresql.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index 1563858887e65..265d26e8ce989 100644 --- a/nixos/modules/services/databases/postgresql.nix +++ b/nixos/modules/services/databases/postgresql.nix @@ -82,7 +82,11 @@ in type = types.lines; default = ""; description = '' - Defines how users authenticate themselves to the server. + Defines how users authenticate themselves to the server. By + default, "trust" access to local users will always be granted + along with any other custom options. If you do not want this, + set this option using "pkgs.lib.mkForce" to override this + behaviour. ''; }; From db7a05e3ad1da90381d127d6e70b207ebfa9a58d Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 23:10:08 +0100 Subject: [PATCH 72/78] Gnome1: add gobjectIntrospection to rest --- pkgs/desktops/gnome-3/core/rest/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome-3/core/rest/default.nix b/pkgs/desktops/gnome-3/core/rest/default.nix index 6c12353d03673..f543f8e13b829 100644 --- a/pkgs/desktops/gnome-3/core/rest/default.nix +++ b/pkgs/desktops/gnome-3/core/rest/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, glib, libsoup }: +{ stdenv, fetchurl, pkgconfig, glib, libsoup, gobjectIntrospection }: stdenv.mkDerivation rec { name = "rest-0.7.90"; @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "08n0cvz44l4b1gkmjryap3ysd0wcbbbdjbcar73nr52dmk52ls0x"; }; - buildInputs = [ pkgconfig glib libsoup ]; + buildInputs = [ pkgconfig glib libsoup gobjectIntrospection]; configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-bundle.crt"; From 60a82e6e0dc028c335c69819bfe7fea8d624cf19 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 23:38:21 +0100 Subject: [PATCH 73/78] Add accountservice, needed for gdm. --- .../libraries/accountservice/default.nix | 13 +++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/development/libraries/accountservice/default.nix diff --git a/pkgs/development/libraries/accountservice/default.nix b/pkgs/development/libraries/accountservice/default.nix new file mode 100644 index 0000000000000..8cab9e39e19d5 --- /dev/null +++ b/pkgs/development/libraries/accountservice/default.nix @@ -0,0 +1,13 @@ +{ stdenv, fetchurl, pkgconfig, glib, intltool, libtool, gobjectIntrospection, polkit }: + +stdenv.mkDerivation rec { + name = "accountsservice-0.6.35"; + + src = fetchurl { + url = http://www.freedesktop.org/software/accountsservice/accountsservice-0.6.35.tar.xz; + sha256 = "0f1hzl6hw56xvwgmd4yvmdyj15xj1fafw45pzv3qarww7h0wg8b5"; + }; + + buildInputs = [ pkgconfig glib intltool libtool gobjectIntrospection polkit ]; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5d450aff88db9..ea57c297fa184 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3948,6 +3948,8 @@ let aalib = callPackage ../development/libraries/aalib { }; + accountservice = callPackage ../development/libraries/accountservice { }; + acl = callPackage ../development/libraries/acl { }; activemq = callPackage ../development/libraries/apache-activemq { }; From 01291d331c859128285ccc0f33cf89086713c66c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 11 Jan 2014 23:42:40 +0100 Subject: [PATCH 74/78] Gnome3: add gdm 3.10.0.1 --- pkgs/desktops/gnome-3/core/gdm/default.nix | 18 ++++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/desktops/gnome-3/core/gdm/default.nix diff --git a/pkgs/desktops/gnome-3/core/gdm/default.nix b/pkgs/desktops/gnome-3/core/gdm/default.nix new file mode 100644 index 0000000000000..2955c5f399b9b --- /dev/null +++ b/pkgs/desktops/gnome-3/core/gdm/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchurl, pkgconfig, glib, itstool, libxml2, intltool, accountservice, libX11 +, gtk, libcanberra_gtk3, pam, libtool +}: + +stdenv.mkDerivation rec { + name = "gdm-3.10.0.1"; + + src = fetchurl { + url = "http://ftp.acc.umu.se/pub/GNOME/core/3.10/3.10.2/sources/${name}.tar.xz"; + sha256 = "1rva3djas48m8w1gyv3nds3jxfkirdfl0bk30x79mizrk80456jl"; + }; + + buildInputs = [ pkgconfig glib itstool libxml2 intltool accountservice libX11 gtk libcanberra_gtk3 pam libtool ]; + + meta = with stdenv.lib; { + platforms = platforms.linux; + }; +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index b366b8b9a297c..2b3f95b20c818 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -26,6 +26,8 @@ rec { gcr = callPackage ./core/gcr { }; # ToDo: tests fail + gdm = callPackage ./core/gdm { }; + gnome_icon_theme = callPackage ./core/gnome-icon-theme { }; gnome-menus = callPackage ./core/gnome-menus { }; From a0070a9157d7d145eed22160cec2562d24032013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sun, 12 Jan 2014 00:23:38 +0100 Subject: [PATCH 75/78] gst_all_1: recurseIntoAttrs --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ea57c297fa184..46a41ed45459c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4415,7 +4415,7 @@ let mpfr = callPackage ../development/libraries/mpfr { }; mpfr_3_1_2 = callPackage ../development/libraries/mpfr/3.1.2.nix { }; - gst_all_1 = callPackage ../development/libraries/gstreamer { }; + gst_all_1 = recurseIntoAttrs(callPackage ../development/libraries/gstreamer { }); gst_all = { inherit (pkgs) gstreamer gnonlin gst_python qt_gstreamer; From df5adbe30705af04a5900fb1da4daf516ef218e8 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 12 Jan 2014 15:31:48 +0000 Subject: [PATCH 76/78] direnv 2.2.1 --- pkgs/tools/misc/direnv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/direnv/default.nix b/pkgs/tools/misc/direnv/default.nix index 8876cfa983a80..f8b590cde2130 100644 --- a/pkgs/tools/misc/direnv/default.nix +++ b/pkgs/tools/misc/direnv/default.nix @@ -1,14 +1,14 @@ { fetchurl, stdenv, go }: let - version = "2.2.0"; + version = "2.2.1"; in stdenv.mkDerivation { name = "direnv-${version}"; src = fetchurl { url = "http://github.com/zimbatm/direnv/archive/v${version}.tar.gz"; name = "direnv-${version}.tar.gz"; - sha256 = "e718ec2eec4e3a6ff78938445fc9702d7835ccfc8fa90f4293e387ac1305bf98"; + sha256 = "6d55cb96189e20609a08133fe9392c50209cd435b4f77e3baaa0f423d82ae59a"; }; buildInputs = [ go ]; From 826e7f8a9411f4433f3aff383a60447ec647cbc2 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 12 Jan 2014 22:15:26 +0400 Subject: [PATCH 77/78] Add a LUA_COMPAT_ALL version of Lua 5.2 --- pkgs/development/interpreters/lua-5/5.2.nix | 4 ++-- pkgs/top-level/all-packages.nix | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/lua-5/5.2.nix b/pkgs/development/interpreters/lua-5/5.2.nix index 5b4c2459872e2..70ab0c3bdf8b5 100644 --- a/pkgs/development/interpreters/lua-5/5.2.nix +++ b/pkgs/development/interpreters/lua-5/5.2.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, readline }: +{ stdenv, fetchurl, readline, compat ? false }: let dsoPatch = fetchurl { @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { patches = [ dsoPatch ]; configurePhase = '' - makeFlagsArray=( INSTALL_TOP=$out INSTALL_MAN=$out/share/man/man1 PLAT=linux CFLAGS="-DLUA_USE_LINUX -O2 -fPIC" LDLAGS="-fPIC" V=${majorVersion} R=${version} ) + makeFlagsArray=( INSTALL_TOP=$out INSTALL_MAN=$out/share/man/man1 PLAT=linux CFLAGS="-DLUA_USE_LINUX -O2 -fPIC${if compat then " -DLUA_COMPAT_ALL" else ""}" LDLAGS="-fPIC" V=${majorVersion} R=${version} ) installFlagsArray=( TO_BIN="lua luac" TO_LIB="liblua.a liblua.so liblua.so.${majorVersion} liblua.so.${version}" INSTALL_DATA='cp -d' ) ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 46a41ed45459c..6617d385c0ebd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3268,6 +3268,9 @@ let lua5_0 = callPackage ../development/interpreters/lua-5/5.0.3.nix { }; lua5_1 = callPackage ../development/interpreters/lua-5/5.1.nix { }; lua5_2 = callPackage ../development/interpreters/lua-5/5.2.nix { }; + lua5_2_compat = callPackage ../development/interpreters/lua-5/5.2.nix { + compat = true; + }; lua5 = lua5_1; luarocks = callPackage ../development/tools/misc/luarocks { From ba1bbc2fa848a0b1ad38fdf77bb51530d7a463f2 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 13 Jan 2014 00:18:05 +0100 Subject: [PATCH 78/78] nixos/cgminer: fix restarts, set uid --- nixos/modules/misc/ids.nix | 1 + nixos/modules/services/misc/cgminer.nix | 17 ++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index 82041b3f954ee..16eec90432123 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -109,6 +109,7 @@ mongodb = 98; openldap = 99; memcached = 100; + cgminer = 101; # When adding a uid, make sure it doesn't match an existing gid. diff --git a/nixos/modules/services/misc/cgminer.nix b/nixos/modules/services/misc/cgminer.nix index 890d7a4020bce..f715013b51f3e 100644 --- a/nixos/modules/services/misc/cgminer.nix +++ b/nixos/modules/services/misc/cgminer.nix @@ -108,20 +108,21 @@ in config = mkIf config.services.cgminer.enable { - users.extraUsers = singleton - { name = cfg.user; + users.extraUsers = optionalAttrs (cfg.user == "cgminer") (singleton + { name = "cgminer"; + uid = config.ids.uids.cgminer; description = "Cgminer user"; - }; + }); environment.systemPackages = [ cfg.package ]; systemd.services.cgminer = { path = [ pkgs.cgminer ]; - after = [ "display-manager.target" "network.target" ]; + after = [ "network.target" "display-manager.service" ]; wantedBy = [ "multi-user.target" ]; - environment = { + environment = { LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib''; DISPLAY = ":0"; GPU_MAX_ALLOC_PERCENT = "100"; @@ -129,9 +130,11 @@ in }; serviceConfig = { - ExecStart = "${pkgs.cgminer}/bin/cgminer -T -c ${cgminerConfig}"; + ExecStart = "${pkgs.cgminer}/bin/cgminer --syslog --text-only --config ${cgminerConfig}"; User = cfg.user; - RestartSec = 10; + RestartSec = "30s"; + Restart = "always"; + StartLimitInterval = "1m"; }; };