kmod-blacklist-ubuntu: fetch from tar.gz, not bazaar
Now the source is just a miniature archive.
This commit is contained in:
parent
5acaa980a5
commit
22690a8cd5
@ -1,19 +1,18 @@
|
|||||||
{ stdenv, fetchbzr }:
|
{ stdenv, fetchurl }:
|
||||||
|
let
|
||||||
|
version = "3ubuntu1"; # Saucy
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "kmod-blacklist-${version}";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
src = fetchurl {
|
||||||
name = "blacklist-ubuntu-${builtins.toString src.revision}"; # Saucy
|
url = "http://archive.ubuntu.com/ubuntu/pool/main/k/kmod/kmod_9-${version}.debian.tar.gz";
|
||||||
|
sha256 = "0h6h0zw2490iqj9xa2sz4309jyfmcc50jdvkhxa1nw90npxglp67";
|
||||||
src = fetchbzr {
|
|
||||||
url = meta.homepage;
|
|
||||||
sha256 = "0ci4b5dxzirc27zvgpr3s0pa78gjmfjwprmvyplxhwxb765la9v9";
|
|
||||||
revision = 13;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackPhase = "true";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir "$out"
|
mkdir "$out"
|
||||||
for f in "$src"/debian/modprobe.d/*.conf; do
|
for f in modprobe.d/*.conf; do
|
||||||
echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf
|
echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf
|
||||||
cat "$f" >> "$out"/modprobe.conf
|
cat "$f" >> "$out"/modprobe.conf
|
||||||
done
|
done
|
||||||
@ -22,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
#TODO: iwlwifi.conf has some strange references
|
#TODO: iwlwifi.conf has some strange references
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://code.launchpad.net/~ubuntu-branches/ubuntu/saucy/kmod/saucy;
|
homepage = http://packages.ubuntu.com/source/saucy/kmod;
|
||||||
description = "Linux kernel module blacklists from Ubuntu";
|
description = "Linux kernel module blacklists from Ubuntu";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user