gnu-efi: Update 3.0u -> 3.0v
Additionally, create the include directories so that install populates them.
This commit is contained in:
@@ -1,23 +1,15 @@
|
|||||||
{ stdenv
|
{ stdenv, fetchurl }:
|
||||||
, fetchurl
|
|
||||||
}:
|
|
||||||
|
|
||||||
let version = "3.0u"; in stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
|
name = "gnu-efi_${version}";
|
||||||
name = "gnu-efi-${version}";
|
version = "3.0v";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/gnu-efi/gnu-efi_${version}.orig.tar.gz";
|
url = "mirror://sourceforge/gnu-efi/${name}.orig.tar.gz";
|
||||||
sha256 = "0klkdxh1aqwwfm393q67nxww6liffyp2lfybbnh4q819b06la39w";
|
sha256 = "1pqgpm999l7zb8gh3s0zd2ax6f0n2l4jip7h0d2y91hhcy6zjxn7";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
arch = with stdenv.lib; head (splitString "-" stdenv.system);
|
||||||
description = "GNU EFI development toolchain";
|
|
||||||
homepage = http://sourceforge.net/projects/gnu-efi/;
|
|
||||||
license = "GPL";
|
|
||||||
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
||||||
platforms = ["x86_64-linux" "i686-linux"];
|
|
||||||
};
|
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"CC=gcc"
|
"CC=gcc"
|
||||||
@@ -34,8 +26,17 @@ let version = "3.0u"; in stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
mkdir -pv $out/include/efi/{protocol,$arch}
|
||||||
make PREFIX="$out" $makeFlags install
|
make PREFIX="$out" $makeFlags install
|
||||||
mkdir -pv $out/share/gnu-efi
|
mkdir -pv $out/share/gnu-efi
|
||||||
install -D -m644 apps/*.efi $out/share/gnu-efi
|
install -D -m644 apps/*.efi $out/share/gnu-efi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "GNU EFI development toolchain";
|
||||||
|
homepage = http://sourceforge.net/projects/gnu-efi/;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user