Merge branch 'staging'
Darwin isn't in a perfect state, in particular its bootstrap tools won't build which will block nixpkgs channel. But on the whole it seems acceptable.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "alsa-lib-1.1.0";
|
||||
name = "alsa-lib-1.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"ftp://ftp.alsa-project.org/pub/lib/${name}.tar.bz2"
|
||||
"http://alsa.cybermirror.org/lib/${name}.tar.bz2"
|
||||
];
|
||||
sha256 = "dfde65d11e82b68f82e562ab6228c1fb7c78854345d3c57e2c68a9dd3dae1f15";
|
||||
sha256 = "0sa24fy3qf3jg63xxvfb7j8halj1qmdbcak2lyfx8bpd8hqnriwa";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -6,7 +6,7 @@ assert stdenv.isLinux;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bluez-5.37";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/bluetooth/${name}.tar.xz";
|
||||
sha256 = "c14ba9ddcb0055522073477b8fd8bf1ddf5d219e75fdfd4699b7e0ce5350d6b0";
|
||||
@@ -20,11 +20,13 @@ stdenv.mkDerivation rec {
|
||||
readline libsndfile udev libical
|
||||
# Disables GStreamer; not clear what it gains us other than a
|
||||
# zillion extra dependencies.
|
||||
# gstreamer gst_plugins_base
|
||||
# gstreamer gst_plugins_base
|
||||
];
|
||||
|
||||
outputs = [ "dev" "out" "test" ];
|
||||
|
||||
patches = [ ./bluez-5.37-obexd_without_systemd-1.patch ];
|
||||
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace tools/hid2hci.rules --replace /sbin/udevadm ${systemd}/bin/udevadm
|
||||
substituteInPlace tools/hid2hci.rules --replace "hid2hci " "$out/lib/udev/hid2hci "
|
||||
@@ -51,9 +53,9 @@ stdenv.mkDerivation rec {
|
||||
# FIXME: Move these into a separate package to prevent Bluez from
|
||||
# depending on Python etc.
|
||||
postInstall = ''
|
||||
mkdir $out/test
|
||||
cp -a test $out
|
||||
pushd $out/test
|
||||
mkdir -p $test/test
|
||||
cp -a test $test
|
||||
pushd $test/test
|
||||
for a in \
|
||||
simple-agent \
|
||||
test-adapter \
|
||||
@@ -65,7 +67,7 @@ stdenv.mkDerivation rec {
|
||||
ln -s ../test/$a $out/bin/bluez-$a
|
||||
done
|
||||
popd
|
||||
wrapPythonProgramsIn $out/test "$out/test $pythonPath"
|
||||
wrapPythonProgramsIn $test/test "$test/test $pythonPath"
|
||||
|
||||
# for bluez4 compatibility for NixOS
|
||||
mkdir $out/sbin
|
||||
|
||||
@@ -11,9 +11,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "04ibs0qw8bh6h6zmm5iz6lddgknwhsjq8ib3gyck6a7psw83h7gi";
|
||||
};
|
||||
|
||||
buildPhase = "true";
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = "mkdir -p $out/lib/firmware/zd1211; cp * $out/lib/firmware/zd1211";
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/firmware/zd1211
|
||||
cp * $out/lib/firmware/zd1211
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Firmware for the ZyDAS ZD1211(b) 802.11a/b/g USB WLAN chip";
|
||||
|
||||
@@ -6,7 +6,7 @@ let
|
||||
binPath = stdenv.lib.makeBinPath
|
||||
[ coreutils gnugrep utillinux kmod procps kbd dbus_tools ];
|
||||
|
||||
sbinPath = stdenv.lib.makeSearchPathOutputs "sbin" ["bin"]
|
||||
sbinPath = stdenv.lib.makeSearchPathOutput "bin" "sbin"
|
||||
[ procps ];
|
||||
|
||||
in
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, ncurses ? null, perl ? null, pam, systemd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "util-linux-2.27.1";
|
||||
name = "util-linux-${version}";
|
||||
version = "2.28";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/utils/util-linux/v2.27/${name}.tar.xz";
|
||||
sha256 = "1452hz5zx56a3mad8yrg5wb0vy5zi19mpjp6zx1yr6p9xp6qz08a";
|
||||
url = "mirror://kernel/linux/utils/util-linux/v${version}/${name}.tar.xz";
|
||||
sha512 = "251zv6lk6b8ip38w2h0w2rpnly38nzh96945mbpssvwjv8fgr5bnhj3207aingyybik79761zngk981wl0rblq5f7l5v655znyi3yd1";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -63,7 +64,7 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.kernel.org/pub/linux/utils/util-linux/;
|
||||
homepage = https://www.kernel.org/pub/linux/utils/util-linux/;
|
||||
description = "A set of system utilities for Linux";
|
||||
license = licenses.gpl2; # also contains parts under more permissive licenses
|
||||
platforms = platforms.linux;
|
||||
|
||||
@@ -3,23 +3,24 @@ which isn't valid on NixOS (and a compatibility link on most other modern
|
||||
distros anyway).
|
||||
|
||||
-- nckx <tobias.geerinckx.rice@gmail.com>
|
||||
|
||||
diff -ru util-linux-2.27-orig/include/pathnames.h util-linux-2.27/include/pathnames.h
|
||||
--- util-linux-2.27-orig/include/pathnames.h 2015-06-29 13:13:14.669847478 +0200
|
||||
+++ util-linux-2.27/include/pathnames.h 2015-10-07 20:09:17.401022602 +0200
|
||||
@@ -54,7 +54,7 @@
|
||||
#define _PATH_INITTAB "/etc/inittab"
|
||||
#define _PATH_RC "/etc/rc"
|
||||
#define _PATH_REBOOT "/sbin/reboot"
|
||||
diff --git a/include/pathnames.h b/include/pathnames.h
|
||||
index de6a13c..0c1aeb9 100644
|
||||
--- a/include/pathnames.h
|
||||
+++ b/include/pathnames.h
|
||||
@@ -50,7 +50,7 @@
|
||||
#define _PATH_VAR_NOLOGIN "/var/run/nologin"
|
||||
|
||||
#define _PATH_LOGIN "/bin/login"
|
||||
-#define _PATH_SHUTDOWN "/sbin/shutdown"
|
||||
+#define _PATH_SHUTDOWN "shutdown"
|
||||
#define _PATH_SINGLE "/etc/singleboot"
|
||||
#define _PATH_SHUTDOWN_CONF "/etc/shutdown.conf"
|
||||
|
||||
diff -ru util-linux-2.27-orig/sys-utils/rtcwake.c util-linux-2.27/sys-utils/rtcwake.c
|
||||
--- util-linux-2.27-orig/sys-utils/rtcwake.c 2015-08-05 11:32:44.453821232 +0200
|
||||
+++ util-linux-2.27/sys-utils/rtcwake.c 2015-10-07 20:09:37.834032536 +0200
|
||||
@@ -576,7 +576,7 @@
|
||||
#define _PATH_TERMCOLORS_DIRNAME "terminal-colors.d"
|
||||
#define _PATH_TERMCOLORS_DIR "/etc/" _PATH_TERMCOLORS_DIRNAME
|
||||
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c
|
||||
index 7c748dc..9a99a7c 100644
|
||||
--- a/sys-utils/rtcwake.c
|
||||
+++ b/sys-utils/rtcwake.c
|
||||
@@ -575,7 +575,7 @@ int main(int argc, char **argv)
|
||||
arg[i++] = "now";
|
||||
arg[i] = NULL;
|
||||
if (!ctl.dryrun) {
|
||||
|
||||
@@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0k46z5gqjzg702m2vs4sv6sxynq1sj14m0pgwvl2gkgg3dfbyjhn";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "out" ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-libv4l"
|
||||
] ++ (if (alsaLib != null && libX11 != null && (qt4 != null || qt5 != null)) then [
|
||||
@@ -36,15 +38,15 @@ stdenv.mkDerivation rec {
|
||||
"--disable-qv4l2"
|
||||
]);
|
||||
|
||||
postInstall = ''
|
||||
postFixup = ''
|
||||
# Create symlink for V4l1 compatibility
|
||||
ln -s $out/include/libv4l1-videodev.h $out/include/videodev.h
|
||||
ln -s "$dev/include/libv4l1-videodev.h" "$dev/include/videodev.h"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
buildInputs = [ alsaLib libX11 qt4 qt5 ];
|
||||
|
||||
|
||||
propagatedBuildInputs = [ libjpeg ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user