Skip to content

Commit 785e45a

Browse files
committedMar 23, 2017
Revert "Revert "kmod-blacklist-ubuntu: 9.3 -> 22.1""
This reverts commit 8c410f4 with a fix to make the tests run correctly. bochs-drm must not be blacklisted for that.
1 parent e0bf35f commit 785e45a

File tree

1 file changed

+10
-8
lines changed
  • pkgs/os-specific/linux/kmod-blacklist-ubuntu

1 file changed

+10
-8
lines changed
 
+10-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{ stdenv, fetchurl, gnugrep, findutils }:
2+
23
let
3-
version = "3ubuntu1"; # Saucy
4-
in
5-
stdenv.mkDerivation {
4+
version = "22-1.1ubuntu1"; # Zesty
5+
6+
in stdenv.mkDerivation {
67
name = "kmod-blacklist-${version}";
78

89
src = fetchurl {
9-
url = "https://launchpad.net/ubuntu/+archive/primary/+files/kmod_9-${version}.debian.tar.gz";
10-
sha256 = "0h6h0zw2490iqj9xa2sz4309jyfmcc50jdvkhxa1nw90npxglp67";
10+
url = "https://launchpad.net/ubuntu/+archive/primary/+files/kmod_${version}.debian.tar.xz";
11+
sha256 = "1k749g707ccb82l4xmrkp53khl71f57cpj9fzd1qyzrz147fjyhi";
1112
};
1213

1314
installPhase = ''
@@ -20,16 +21,17 @@ stdenv.mkDerivation {
2021
done
2122
2223
substituteInPlace "$out"/modprobe.conf \
24+
--replace "blacklist bochs-drm" "" \
2325
--replace /sbin/lsmod /run/booted-system/sw/bin/lsmod \
2426
--replace /sbin/rmmod /run/booted-system/sw/bin/rmmod \
2527
--replace /sbin/modprobe /run/booted-system/sw/bin/modprobe \
2628
--replace " grep " " ${gnugrep}/bin/grep " \
2729
--replace " xargs " " ${findutils}/bin/xargs "
2830
'';
2931

30-
meta = {
31-
homepage = http://packages.ubuntu.com/source/saucy/kmod;
32+
meta = with stdenv.lib; {
33+
homepage = http://packages.ubuntu.com/source/zesty/kmod;
3234
description = "Linux kernel module blacklists from Ubuntu";
33-
platforms = stdenv.lib.platforms.linux;
35+
platforms = platforms.linux;
3436
};
3537
}

0 commit comments

Comments
 (0)
Please sign in to comment.