mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
gnu-efi: 3.0b -> 3.0.2
This commit is contained in:
parent
3ee72b7379
commit
d220ea72e5
@ -1,17 +1,18 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, pciutils }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gnu-efi_${version}";
|
name = "gnu-efi-${version}";
|
||||||
version = "3.0u";
|
version = "3.0.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/gnu-efi/${name}.orig.tar.gz";
|
url = "mirror://sourceforge/gnu-efi/${name}.tar.bz2";
|
||||||
sha256 = "0klkdxh1aqwwfm393q67nxww6liffyp2lfybbnh4q819b06la39w";
|
sha256 = "1mxl6xarwickhssn0nc5hyvayyf2cjh5p10l37jd1ymirl75hjqr";
|
||||||
};
|
};
|
||||||
|
|
||||||
arch = with stdenv.lib; head (splitString "-" stdenv.system);
|
buildInputs = [ pciutils ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
"PREFIX=\${out}"
|
||||||
"CC=gcc"
|
"CC=gcc"
|
||||||
"AS=as"
|
"AS=as"
|
||||||
"LD=ld"
|
"LD=ld"
|
||||||
@ -20,18 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
"OBJCOPY=objcopy"
|
"OBJCOPY=objcopy"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
make $makeFlags
|
|
||||||
make $makeFlags -C apps clean all
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -pv $out/include/efi/{protocol,$arch}
|
|
||||||
make PREFIX="$out" $makeFlags install
|
|
||||||
mkdir -pv $out/share/gnu-efi
|
|
||||||
install -D -m644 apps/*.efi $out/share/gnu-efi
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "GNU EFI development toolchain";
|
description = "GNU EFI development toolchain";
|
||||||
homepage = http://sourceforge.net/projects/gnu-efi/;
|
homepage = http://sourceforge.net/projects/gnu-efi/;
|
||||||
|
Loading…
Reference in New Issue
Block a user