Merge pull request #23890 from peterhoeg/u/kmod
kmod: 23 -> 24 and update kmod-blacklist-ubuntu to zesty
This commit is contained in:
commit
cb73e06989
2 changed files with 13 additions and 10 deletions
|
@ -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 = ''
|
||||
|
@ -15,6 +16,8 @@ stdenv.mkDerivation {
|
|||
for f in modprobe.d/*.conf; do
|
||||
echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf
|
||||
cat "$f" >> "$out"/modprobe.conf
|
||||
# https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1475945
|
||||
sed -i '/^blacklist i2c_801/d' $out/modprobe.conf
|
||||
done
|
||||
|
||||
substituteInPlace "$out"/modprobe.conf \
|
||||
|
@ -25,9 +28,9 @@ stdenv.mkDerivation {
|
|||
--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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,11 +6,11 @@ let
|
|||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "kmod-${version}";
|
||||
version = "23";
|
||||
version = "24";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/utils/kernel/kmod/${name}.tar.xz";
|
||||
sha256 = "0mc12sx06p8il1ym3hdmgxxb37apn9yv7xij26gddjdfkx8xa0yk";
|
||||
sha256 = "15xkkkzvca9flvkm48gkh8y8f13vlm3sl7nz9ydc7b3jy4fqs2v1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig libxslt ];
|
||||
|
|
Loading…
Reference in a new issue