Merge branch 'master' into staging

Hydra: ?compare=1420346
This commit is contained in:
Vladimír Čunát
2017-12-21 22:45:40 +01:00
184 changed files with 22272 additions and 14737 deletions

View File

@@ -5,7 +5,7 @@
, glib, dbus_glib, gtkVersion
, gtk2 ? null, libindicator-gtk2 ? null, libdbusmenu-gtk2 ? null
, gtk3 ? null, libindicator-gtk3 ? null, libdbusmenu-gtk3 ? null
, python2Packages, gobjectIntrospection, vala_0_23
, python2Packages, gobjectIntrospection, vala
, monoSupport ? false, mono ? null, gtk-sharp-2_0 ? null
}:
@@ -34,7 +34,7 @@ in stdenv.mkDerivation rec {
buildInputs = [
glib dbus_glib
python pygobject2 pygtk gobjectIntrospection vala_0_23
python pygobject2 pygtk gobjectIntrospection vala
] ++ (if gtkVersion == "2"
then [ libindicator-gtk2 ] ++ optionals monoSupport [ mono gtk-sharp-2_0 ]
else [ libindicator-gtk3 ]);

View File

@@ -4,7 +4,7 @@
, pkgconfig, autoconf
, glib, dbus_glib, libdbusmenu-glib
, gtkVersion, gtk2 ? null, gtk3 ? null
, pythonPackages, gobjectIntrospection, vala_0_23, gnome_doc_utils
, pythonPackages, gobjectIntrospection, vala, gnome_doc_utils
, monoSupport ? false, mono ? null, gtk-sharp-2_0 ? null
}:
@@ -24,11 +24,11 @@ in stdenv.mkDerivation rec {
sha256 = "10am0ymajx633b33anf6b79j37k61z30v9vaf5f9fwk1x5cw1q21";
};
nativeBuildInputs = [ pkgconfig autoconf ];
nativeBuildInputs = [ pkgconfig autoconf gobjectIntrospection vala gnome_doc_utils ];
buildInputs = [
glib dbus_glib libdbusmenu-glib
python pygobject2 pygtk gobjectIntrospection vala_0_23 gnome_doc_utils
python pygobject2 pygtk
] ++ (if gtkVersion == "2"
then [ gtk2 ] ++ optionals monoSupport [ mono gtk-sharp-2_0 ]
else [ gtk3 ]);

View File

@@ -1,23 +1,43 @@
{ stdenv, fetchurl, pkgconfig, intltool, gobjectIntrospection, libsoup
, libxslt, check, vala_0_23 ? null
{ stdenv, fetchurl, pkgconfig, intltool, gobjectIntrospection, gtk_doc, docbook_xsl
, glib, libsoup, libxml2, libxslt, check, curl, perl, hwdata, osinfo-db, vala ? null
}:
stdenv.mkDerivation rec {
name = "libosinfo-0.2.12";
name = "libosinfo-1.1.0";
src = fetchurl {
url = "https://fedorahosted.org/releases/l/i/libosinfo/${name}.tar.gz";
sha256 = "1vcg8ylh7q69s9y6hj94dqfffwfbann3i28yqgfc01navf6yl07s";
url = "https://releases.pagure.org/libosinfo/${name}.tar.gz";
sha256 = "0diigllgni6m0sc2h8aid6hmyaq9qb54pm5305m0irfsm2j463v0";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
intltool gobjectIntrospection libsoup libxslt check vala_0_23
outputs = [ "out" "dev" "devdoc" ];
nativeBuildInputs = [
pkgconfig vala intltool gobjectIntrospection gtk_doc docbook_xsl
] ++ stdenv.lib.optionals doCheck checkInputs;
checkInputs = [ check curl perl ];
buildInputs = [ glib libsoup libxml2 libxslt ];
patches = [
./osinfo-db-data-dir.patch
];
postPatch = ''
patchShebangs .
substituteInPlace osinfo/osinfo_loader.c --subst-var-by OSINFO_DB_DATA_DIR "${osinfo-db}/share"
'';
configureFlags = [
"--with-usb-ids-path=${hwdata}/data/hwdata/usb.ids"
"--with-pci-ids-path=${hwdata}/data/hwdata/pci.ids"
"--enable-gtk-doc"
];
doCheck = true;
meta = with stdenv.lib; {
description = "Info about OSs, hypervisors and (virtual) hardware devices";
homepage = http://libosinfo.org/;
description = "GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support";
homepage = https://libosinfo.org/;
license = licenses.lgpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];

View File

@@ -0,0 +1,11 @@
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -2304,7 +2304,7 @@
} else {
path = g_getenv("OSINFO_SYSTEM_DIR");
if (!path)
- path = DATA_DIR "/osinfo";
+ path = "@OSINFO_DB_DATA_DIR@/osinfo";
file = g_file_new_for_path(path);
}

View File

@@ -1,22 +1,22 @@
{ stdenv, fetchurl, fetchFromGitHub,
libtool, intltool, pkgconfig,
libtool, gettext, pkgconfig,
vala, gnome_common, gobjectIntrospection,
libgee_0_8, json_glib, skk-dicts }:
libgee, json_glib, skk-dicts }:
stdenv.mkDerivation rec {
name = "libskk-${version}";
version = "1.0.2";
version = "1.0.3";
src = fetchFromGitHub {
owner = "ueno";
repo = "libskk";
rev = "6a232e75de6d5dbe543ab17c9b85dc7560093509";
sha256 = "1xa9akf95jyi4laiw1llnjdpfq5skhidm7dnkd0i0ds6npzzqnxc";
rev = version;
sha256 = "092bjir866f350s4prq9q0yg34s91vmr8wbgf2vh3kcax1yj1axm";
};
buildInputs = [ skk-dicts ];
nativeBuildInputs = [ vala gnome_common gobjectIntrospection libtool intltool pkgconfig ];
propagatedBuildInputs = [ libgee_0_8 json_glib ];
nativeBuildInputs = [ vala gnome_common gobjectIntrospection libtool gettext pkgconfig ];
propagatedBuildInputs = [ libgee json_glib ];
preConfigure = ''
./autogen.sh

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, alsaLib, libjack2, libpulseaudio }:
{ stdenv, fetchFromGitHub, cmake, alsaLib, libjack2, libpulseaudio, AudioUnit }:
stdenv.mkDerivation rec {
version = "1.1.0";
@@ -11,7 +11,13 @@ stdenv.mkDerivation rec {
sha256 = "0mw197l4bci1cjc2z877gxwsvk8r43dr7qiwci2hwl2cjlcnqr2p";
};
buildInputs = [ cmake alsaLib libjack2 libpulseaudio ];
nativeBuildInputs = [ cmake ];
buildInputs = [ libjack2 libpulseaudio ]
++ stdenv.lib.optional stdenv.isLinux alsaLib
++ stdenv.lib.optional stdenv.isDarwin AudioUnit;
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
meta = with stdenv.lib; {
description = "Cross platform audio input and output";

View File

@@ -1,27 +0,0 @@
{ stdenv, fetchurl, vala_0_23, python, intltool, pkgconfig
, glib, libgee_0_6, gtk3, dee, libdbusmenu-glib
}:
stdenv.mkDerivation rec {
name = "libunity-${version}";
version = "6.12.0";
src = fetchurl {
url = "https://launchpad.net/libunity/6.0/${version}/+download/${name}.tar.gz";
sha256 = "1nadapl3390x98q1wv2yarh60hzi7ck0d1s8zz9xsiq3zz6msbjd";
};
buildInputs = [ glib libgee_0_6 gtk3 ];
propagatedBuildInputs = [ dee libdbusmenu-glib ];
nativeBuildInputs = [ vala_0_23 python intltool pkgconfig ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A library for instrumenting- and integrating with all aspects of the Unity shell";
homepage = https://launchpad.net/libunity;
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@@ -4,7 +4,7 @@
, iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages
, curl, libiconv, gmp, xen, zfs, parted, qemu
, curl, libiconv, gmp, xen, zfs, parted
}:
with stdenv.lib;
@@ -41,8 +41,6 @@ stdenv.mkDerivation rec {
# the path to qemu-kvm will be stored in VM's .xml and .save files
# do not use "''${qemu_kvm}/bin/qemu-kvm" to avoid bound VMs to particular qemu derivations
substituteInPlace src/qemu/qemu_capabilities.c \
--replace '"/usr/libexec/qemu-kvm"' '"/run/libvirt/nix-emulators/${if stdenv.isAarch64 then "qemu-system-aarch64" else "qemu-kvm"}"'
substituteInPlace src/lxc/lxc_conf.c \
--replace 'lxc_path,' '"/run/libvirt/nix-emulators/libvirt_lxc",'
'' + ''
@@ -91,7 +89,7 @@ stdenv.mkDerivation rec {
substituteInPlace $out/lib/systemd/system/libvirtd.service --replace /bin/kill ${coreutils}/bin/kill
rm $out/lib/systemd/system/{virtlockd,virtlogd}.*
wrapProgram $out/sbin/libvirtd \
--prefix PATH : ${makeBinPath [ iptables iproute pmutils numad numactl qemu ]}
--prefix PATH : /run/libvirt/nix-emulators:${makeBinPath [ iptables iproute pmutils numad numactl ]}
'';
enableParallelBuilding = true;

View File

@@ -12,8 +12,10 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig which perl ];
buildInputs = [ openssl zlib snappy ];
propagatedBuildInputs = [ libbson ];
buildInputs = [ openssl zlib ];
propagatedBuildInputs = [ libbson snappy ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "The official C client library for MongoDB";

View File

@@ -0,0 +1,10 @@
{ callPackage, fetchurl, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "2.5.0";
# make sure you test also -A pythonPackages.protobuf
src = fetchurl {
url = "http://protobuf.googlecode.com/files/${version}.tar.bz2";
sha256 = "0xxn9gxhvsgzz2sgmihzf6pf75clr05mqj6218camwrwajpcbgqk";
};
})

View File

@@ -11,18 +11,17 @@ stdenv.mkDerivation rec {
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2";
};
patches = [ ./disable-benchmark.patch ];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake ];
# -DNDEBUG for speed
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
# SIGILL on darwin
doCheck = !stdenv.isDarwin;
checkPhase = ''
(cd .. && ./build/snappy_unittest)
'';
checkTarget = "test";
doCheck = true;
meta = with stdenv.lib; {
homepage = https://google.github.io/snappy/;

View File

@@ -0,0 +1,5 @@
--- a/snappy-test.cc
+++ b/snappy-test.cc
@@ -46 +46 @@
-DEFINE_bool(run_microbenchmarks, true,
+DEFINE_bool(run_microbenchmarks, false,

View File

@@ -1,34 +0,0 @@
{ lib, stdenv, fetchurl, pkgconfig
, wld, wayland, xwayland, fontconfig, pixman, libdrm, libinput, libevdev, libxkbcommon, libxcb, xcbutilwm
}:
stdenv.mkDerivation rec {
name = "swc-${version}";
version = "git-2016-02-09";
repo = "https://github.com/michaelforney/swc";
rev = "1da0ef13fddc572accea12439a4471b4d2f64ddd";
src = fetchurl {
url = "${repo}/archive/${rev}.tar.gz";
sha256 = "d1894612d8aa1ce828efb78f1570290f84bba6563e21eb777e08c3c3859b7bbe";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ wld wayland xwayland fontconfig pixman libdrm libinput libevdev libxkbcommon libxcb xcbutilwm ];
prePatch = ''
substituteInPlace launch/local.mk --replace 4755 755
'';
makeFlags = "PREFIX=$(out)";
installPhase = "PREFIX=$out make install";
meta = {
description = "A library for making a simple Wayland compositor";
homepage = repo;
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ];
};
}

View File

@@ -1,30 +0,0 @@
{ lib, stdenv, fetchurl, pkgconfig
, wayland, fontconfig, pixman, freetype, libdrm
}:
stdenv.mkDerivation rec {
name = "wld-${version}";
version = "git-2015-09-01";
repo = "https://github.com/michaelforney/wld";
rev = "efe0a1ed1856a2e4a1893ed0f2d7dde43b5627f0";
src = fetchurl {
url = "${repo}/archive/${rev}.tar.gz";
sha256 = "09388f7828e18c75e7b8d41454903886a725d7a868f60e66c128bd7d2e953ee1";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ wayland fontconfig pixman freetype libdrm ];
makeFlags = "PREFIX=$(out)";
installPhase = "PREFIX=$out make install";
meta = {
description = "A primitive drawing library targeted at Wayland";
homepage = repo;
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ];
};
}