From 5acaa980a510f77fce358bdbe93ab5fa388118fd Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Tue, 21 Jan 2014 00:29:35 +0100 Subject: pull module blacklist from Ubuntu and use it by default People often have serious problems due to bogus modules like *fb. --- .../linux/kmod-blacklist-ubuntu/default.nix | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix (limited to 'pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix') diff --git a/pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix b/pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix new file mode 100644 index 00000000000..9da50766f92 --- /dev/null +++ b/pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchbzr }: + +stdenv.mkDerivation rec { + name = "blacklist-ubuntu-${builtins.toString src.revision}"; # Saucy + + src = fetchbzr { + url = meta.homepage; + sha256 = "0ci4b5dxzirc27zvgpr3s0pa78gjmfjwprmvyplxhwxb765la9v9"; + revision = 13; + }; + + unpackPhase = "true"; + + installPhase = '' + mkdir "$out" + for f in "$src"/debian/modprobe.d/*.conf; do + echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf + cat "$f" >> "$out"/modprobe.conf + done + ''; + + #TODO: iwlwifi.conf has some strange references + + meta = { + homepage = https://code.launchpad.net/~ubuntu-branches/ubuntu/saucy/kmod/saucy; + description = "Linux kernel module blacklists from Ubuntu"; + }; +} -- cgit 1.4.1