2012-01-14 10:31:12 +01:00
|
|
|
# TODO: some files are not at the right place.
|
|
|
|
# For now, we take the strategy of adding symlinks to fix this,
|
|
|
|
# however it is probably better to extract the files from
|
|
|
|
# the appropriate debian binary packages.
|
|
|
|
|
2012-01-12 18:16:11 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "firmware-linux-nonfree-0.34";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/non-free/f/firmware-nonfree/firmware-nonfree_0.34.tar.gz";
|
|
|
|
sha256 = "94fe856d00f63559486b7684c0fae9b30bee599c6d7dea8c7e00d2dcb548ee8a";
|
|
|
|
};
|
|
|
|
|
2012-01-14 10:31:12 +01:00
|
|
|
phases = [ "unpackPhase" "patchPhase" "installPhase" "postInstall" ];
|
|
|
|
|
|
|
|
patchPhase = "rm -rf debian defines TODO";
|
2012-01-12 18:16:11 +01:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
installPhase = "mkdir -p $out && cp -ra * $out/";
|
2012-01-12 18:16:11 +01:00
|
|
|
|
2012-01-14 10:31:12 +01:00
|
|
|
# repeat the same trick for radeon, 3com, etc.
|
2012-01-12 18:16:11 +01:00
|
|
|
postInstall = "ln -s $out/realtek/rtlwifi $out/rtlwifi";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Non-free kernel firmware (packaged by Debian)";
|
|
|
|
homepage = "http://packages.debian.org/sid/firmware-linux-nonfree";
|
|
|
|
license = "unfree-redistributable-firmware";
|
|
|
|
priority = "10";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|