Merge branch 'master' into x-updates
This commit is contained in:
@@ -1,23 +1,22 @@
|
||||
{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib, python, makeWrapper
|
||||
, pythonDBus, pygobject, readline, libsndfile, udev, libical, systemd }:
|
||||
{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib, python,
|
||||
pythonPackages, pythonDBus, readline, libsndfile, udev, libical,
|
||||
systemd }:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
|
||||
let
|
||||
pythonpath = "${pythonDBus}/lib/${python.libPrefix}/site-packages:"
|
||||
+ "${pygobject}/lib/${python.libPrefix}/site-packages";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bluez-5.3";
|
||||
name = "bluez-5.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/bluetooth/${name}.tar.xz";
|
||||
sha256 = "41b0559e3a8436a739eb7cc79156ca91daf8c115f57971b6bcb422ee0213db42";
|
||||
sha256 = "1l33lq1lpg7hy26138ir5dj4gl3mql2qxpj20rjnnwyckc3jk700";
|
||||
};
|
||||
|
||||
pythonPath = with pythonPackages;
|
||||
[ pythonDBus pygobject3 recursivePthLoader ];
|
||||
|
||||
buildInputs =
|
||||
[ pkgconfig dbus.libs glib libusb alsaLib python makeWrapper
|
||||
[ pkgconfig dbus.libs glib libusb alsaLib python pythonPackages.wrapPython
|
||||
readline libsndfile udev libical
|
||||
# Disables GStreamer; not clear what it gains us other than a
|
||||
# zillion extra dependencies.
|
||||
@@ -49,7 +48,9 @@ stdenv.mkDerivation rec {
|
||||
# FIXME: Move these into a separate package to prevent Bluez from
|
||||
# depending on Python etc.
|
||||
postInstall = ''
|
||||
pushd test
|
||||
mkdir $out/test
|
||||
cp -a test $out
|
||||
pushd $out/test
|
||||
for a in \
|
||||
simple-agent \
|
||||
test-adapter \
|
||||
@@ -58,14 +59,19 @@ stdenv.mkDerivation rec {
|
||||
list-devices \
|
||||
monitor-bluetooth \
|
||||
; do
|
||||
cp $a $out/bin/bluez-$a
|
||||
wrapProgram $out/bin/bluez-$a --prefix PYTHONPATH : ${pythonpath}
|
||||
ln -s ../test/$a $out/bin/bluez-$a
|
||||
done
|
||||
popd
|
||||
wrapPythonProgramsIn $out/test "$out/test $pythonPath"
|
||||
|
||||
# for bluez4 compatibility for NixOS
|
||||
mkdir $out/sbin
|
||||
ln -s ../libexec/bluetooth/bluetoothd $out/sbin/bluetoothd
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.bluez.org/;
|
||||
description = "Bluetooth support for Linux";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ in stdenv.mkDerivation {
|
||||
buildInputs = [ dpkg ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share
|
||||
cp -r lib/firmware/* "$out/"
|
||||
mkdir -p $out/share $out/lib/firmware
|
||||
cp -r lib/firmware/* "$out/lib/firmware/"
|
||||
cp -r usr/share/doc $out/share/
|
||||
find $out/share -name changelog.gz | xargs rm
|
||||
'';
|
||||
@@ -65,6 +65,5 @@ in stdenv.mkDerivation {
|
||||
homepage = http://packages.debian.org/sid/firmware-linux-nonfree;
|
||||
license = stdenv.lib.licenses.unfreeRedistributableFirmware;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
priority = 10; # low priority so that other packages can override this big package
|
||||
};
|
||||
}
|
||||
|
||||
@@ -24,9 +24,7 @@ with stdenv.lib;
|
||||
# Support drivers that need external firmware.
|
||||
STANDALONE n
|
||||
|
||||
# Enable the complete Linux kernel ".config" file to be saved in the kernel.
|
||||
# Also, make it available at runtime as /proc/config.gz.
|
||||
IKCONFIG y
|
||||
# Make /proc/config.gz available.
|
||||
IKCONFIG_PROC y
|
||||
|
||||
# Optimize with -O2, not -Os.
|
||||
@@ -103,7 +101,9 @@ with stdenv.lib;
|
||||
FB_SIS_300 y
|
||||
FB_SIS_315 y
|
||||
FB_3DFX_ACCEL y
|
||||
FB_GEODE y
|
||||
${optionalString (versionOlder version "3.9" || stdenv.system == "i686-linux") ''
|
||||
FB_GEODE y
|
||||
''}
|
||||
|
||||
# Video configuration.
|
||||
# Enable KMS for devices whose X.org driver supports it.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, ... } @ args:
|
||||
|
||||
import ./generic.nix (args // rec {
|
||||
version = "3.10.9";
|
||||
version = "3.10.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
|
||||
sha256 = "1kwi5v4rw06rmb548wjkgi27amsfvpfd2n07bmyjvjqnqrldm5bk";
|
||||
sha256 = "01cpg6j1jsjh4vgvmia12y6rci4gqb967gc0gqpz5gcimzg4bb5p";
|
||||
};
|
||||
|
||||
features.iwlwifi = true;
|
||||
|
||||
17
pkgs/os-specific/linux/kernel/linux-3.11.nix
Normal file
17
pkgs/os-specific/linux/kernel/linux-3.11.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ stdenv, fetchurl, ... } @ args:
|
||||
|
||||
import ./generic.nix (args // rec {
|
||||
version = "3.11";
|
||||
modDirVersion = "3.11.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
|
||||
sha256 = "1yfpa4fzhsn4r5dwkcf3azy0vqdms865jaikn3fdwbabmpqchgl0";
|
||||
};
|
||||
|
||||
features.iwlwifi = true;
|
||||
features.efiBootStub = true;
|
||||
features.needsCifsUtils = true;
|
||||
features.canDisableNetfilterConntrackHelpers = true;
|
||||
features.netfilterRPFilter = true;
|
||||
})
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, ... } @ args:
|
||||
|
||||
import ./generic.nix (args // rec {
|
||||
version = "3.4.59";
|
||||
version = "3.4.60";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
|
||||
sha256 = "19ylh9k9qykr8x29jcqv1q6agmyvzx7q5md2yxph4sykjsccqzj7";
|
||||
sha256 = "16pg9sdsf5nwp1lc583dcbn1ay67b7yb55xg8cgv63bvmh4h3vrb";
|
||||
};
|
||||
|
||||
features.iwlwifi = true;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{ stdenv, fetchurl, bison, flex, which, perl }:
|
||||
|
||||
let version = "3.3.1"; in
|
||||
let version = "3.3.4"; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lm-sensors-3.3.1";
|
||||
name = "lm-sensors-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${version}.tar.bz2";
|
||||
sha256 = "13v2gszagmx8hwjyzh2k47rdpc2kyg9zky3kdqhdbgzp8lwpik6g";
|
||||
sha256 = "0vd7dgpcri7cbvgl5fwvja53lqz829vkbbp17x7b5r2xrc88cq5l";
|
||||
};
|
||||
|
||||
buildInputs = [ bison flex which perl ];
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ stdenv, fetchurl, kernelDev }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lttng-modules-2.2.1";
|
||||
pname = "lttng-modules-2.3.0";
|
||||
name = "${pname}-${kernelDev.version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://lttng.org/files/lttng-modules/${pname}.tar.bz2";
|
||||
sha256 = "00ww1443ssv614s1ix6zby8llaf6zzlxcf5k4w7jsyji47ng33m2";
|
||||
sha256 = "0l9fbmpsjvm5pbrc6axy8chdp21j4b8fm0hmjhpk658ll0iixmpb";
|
||||
};
|
||||
|
||||
patches = [ ./lttng-fix-build-error-on-linux-3.2.patch ];
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "amd-ucode-2012-09-10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.amd64.org/pub/microcode/${name}.tar";
|
||||
urls =
|
||||
[ "http://pkgs.fedoraproject.org/repo/pkgs/microcode_ctl/${name}.tar/559bc355d3799538584add80df2996f0/${name}.tar"
|
||||
"http://www.amd64.org/pub/microcode/${name}.tar"
|
||||
];
|
||||
sha256 = "065phvhx5hx5ssdd1x2p5m1yv26ak7l5aaw6yk6h95x9mxn5r111";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/amd-ucode
|
||||
mv microcode_amd_fam15h.bin microcode_amd.bin $out/amd-ucode/
|
||||
mkdir -p $out/lib/firmware/amd-ucode $out/share/doc/amd-ucode
|
||||
mv microcode_amd_fam15h.bin microcode_amd.bin $out/lib/firmware/amd-ucode/
|
||||
mv LICENSE $out/share/doc/amd-ucode
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "AMD Processor Microcode Patch";
|
||||
homepage = "http://www.amd64.org/support/microcode.html";
|
||||
license = "non-free";
|
||||
description = "AMD Processor microcode patch";
|
||||
homepage = http://www.amd64.org/support/microcode.html;
|
||||
license = stdenv.lib.licenses.unfreeRedistributableFirmware;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
{ stdenv, fetchurl, microcode2ucode }:
|
||||
|
||||
let version = "20120606";
|
||||
num = "21385";
|
||||
in stdenv.mkDerivation {
|
||||
let version = "20130808"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "microcode-intel-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloadmirror.intel.com/${num}/eng/microcode-${version}.tgz";
|
||||
sha256 = "0hs95lj24zx3jscc64zg3hf8xc95vrnsyqlid66h453ib0wf8fg1";
|
||||
url = "http://downloadmirror.intel.com/23082/eng/microcode-${version}.tgz";
|
||||
sha256 = "19v0059v6dxv7ly57wgqy9nkjjnmprgwz4s94khdf213k5vikpfm";
|
||||
};
|
||||
|
||||
buildInputs = [ microcode2ucode ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildPhase = ''
|
||||
@@ -17,12 +19,13 @@ in stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out
|
||||
cp -r intel-ucode "$out/"
|
||||
mkdir -p $out/lib/firmware
|
||||
cp -r intel-ucode "$out/lib/firmware/"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.intel.com/;
|
||||
description = "Microcode for Intel processors";
|
||||
license = stdenv.lib.licenses.unfree;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ stdenv.mkDerivation {
|
||||
|
||||
patches =
|
||||
[ ./version-test.patch ]
|
||||
++ optional (!libsOnly && versionAtLeast kernelDev.version "3.11") ./nvidia-drivers-linux-3.11-incremental.patch
|
||||
;
|
||||
|
||||
src =
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
From 8a8647ad942c8ac5161e1335f7f3e9dbb34dbf9e Mon Sep 17 00:00:00 2001
|
||||
From: Lukas Elsner <open@mindrunner.de>
|
||||
Date: Wed, 17 Jul 2013 01:16:04 +0200
|
||||
Subject: [PATCH] replace num_physpages with totalram_pages
|
||||
|
||||
---
|
||||
kernel/nv-linux.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
|
||||
index 4e5ed89..46c51ec 100644
|
||||
--- a/kernel/nv-linux.h
|
||||
+++ b/kernel/nv-linux.h
|
||||
@@ -957,7 +957,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
|
||||
#endif
|
||||
|
||||
#if !defined(NV_VMWARE)
|
||||
-#define NV_NUM_PHYSPAGES num_physpages
|
||||
+#define NV_NUM_PHYSPAGES totalram_pages
|
||||
#define NV_GET_CURRENT_PROCESS() current->tgid
|
||||
#define NV_IN_ATOMIC() in_atomic()
|
||||
#define NV_LOCAL_BH_DISABLE() local_bh_disable()
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
Reference in New Issue
Block a user