1
1
{ stdenv , fetchurl , gnugrep , findutils } :
2
+
2
3
let
3
- version = "3ubuntu1 " ; # Saucy
4
- in
5
- stdenv . mkDerivation {
4
+ version = "22-1.1ubuntu1 " ; # Zesty
5
+
6
+ in stdenv . mkDerivation {
6
7
name = "kmod-blacklist-${ version } " ;
7
8
8
9
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 " ;
11
12
} ;
12
13
13
14
installPhase = ''
@@ -20,16 +21,17 @@ stdenv.mkDerivation {
20
21
done
21
22
22
23
substituteInPlace "$out"/modprobe.conf \
24
+ --replace "blacklist bochs-drm" "" \
23
25
--replace /sbin/lsmod /run/booted-system/sw/bin/lsmod \
24
26
--replace /sbin/rmmod /run/booted-system/sw/bin/rmmod \
25
27
--replace /sbin/modprobe /run/booted-system/sw/bin/modprobe \
26
28
--replace " grep " " ${ gnugrep } /bin/grep " \
27
29
--replace " xargs " " ${ findutils } /bin/xargs "
28
30
'' ;
29
31
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 ;
32
34
description = "Linux kernel module blacklists from Ubuntu" ;
33
- platforms = stdenv . lib . platforms . linux ;
35
+ platforms = platforms . linux ;
34
36
} ;
35
37
}
0 commit comments