mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
9f7d7adb05
This reverts commit 0307c27219
.
The only change was blacklisting bochs-drm, but that breaks our VM setup
and I don't see a good reason to do that on the Ubuntu issue
(just some PowerPC failure).
Defaulting to qxl driver might be better anyway, but I'm not venturing
such changes now.
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ stdenv, fetchurl, gnugrep, findutils }:
|
|
let
|
|
version = "3ubuntu1"; # Saucy
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "kmod-blacklist-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/ubuntu/+archive/primary/+files/kmod_9-${version}.debian.tar.gz";
|
|
sha256 = "0h6h0zw2490iqj9xa2sz4309jyfmcc50jdvkhxa1nw90npxglp67";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir "$out"
|
|
for f in modprobe.d/*.conf; do
|
|
echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf
|
|
cat "$f" >> "$out"/modprobe.conf
|
|
done
|
|
|
|
substituteInPlace "$out"/modprobe.conf \
|
|
--replace /sbin/lsmod /run/booted-system/sw/bin/lsmod \
|
|
--replace /sbin/rmmod /run/booted-system/sw/bin/rmmod \
|
|
--replace /sbin/modprobe /run/booted-system/sw/bin/modprobe \
|
|
--replace " grep " " ${gnugrep}/bin/grep " \
|
|
--replace " xargs " " ${findutils}/bin/xargs "
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://packages.ubuntu.com/source/saucy/kmod;
|
|
description = "Linux kernel module blacklists from Ubuntu";
|
|
};
|
|
}
|