Skip to content

Commit

Permalink
Revert "Revert "kmod-blacklist-ubuntu: 9.3 -> 22.1""
Browse files Browse the repository at this point in the history
This reverts commit 8c410f4 with a fix
to make the tests run correctly. bochs-drm must not be blacklisted for
that.
  • Loading branch information
globin committed Mar 23, 2017
1 parent e0bf35f commit 785e45a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix
@@ -1,13 +1,14 @@
{ stdenv, fetchurl, gnugrep, findutils }:

let
version = "3ubuntu1"; # Saucy
in
stdenv.mkDerivation {
version = "22-1.1ubuntu1"; # Zesty

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";
url = "https://launchpad.net/ubuntu/+archive/primary/+files/kmod_${version}.debian.tar.xz";
sha256 = "1k749g707ccb82l4xmrkp53khl71f57cpj9fzd1qyzrz147fjyhi";
};

installPhase = ''
Expand All @@ -20,16 +21,17 @@ stdenv.mkDerivation {
done
substituteInPlace "$out"/modprobe.conf \
--replace "blacklist bochs-drm" "" \
--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;
meta = with stdenv.lib; {
homepage = http://packages.ubuntu.com/source/zesty/kmod;
description = "Linux kernel module blacklists from Ubuntu";
platforms = stdenv.lib.platforms.linux;
platforms = platforms.linux;
};
}

0 comments on commit 785e45a

Please sign in to comment.