summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/gnu-efi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/gnu-efi/default.nix')
-rw-r--r--pkgs/development/libraries/gnu-efi/default.nix29
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/development/libraries/gnu-efi/default.nix b/pkgs/development/libraries/gnu-efi/default.nix
index 07c3c668793c..a78d98907291 100644
--- a/pkgs/development/libraries/gnu-efi/default.nix
+++ b/pkgs/development/libraries/gnu-efi/default.nix
@@ -1,23 +1,15 @@
-{ stdenv
-, fetchurl
-}:
+{ stdenv, fetchurl }:
-let version = "3.0u"; in stdenv.mkDerivation {
-
- name = "gnu-efi-${version}";
+stdenv.mkDerivation rec {
+ name = "gnu-efi_${version}";
+ version = "3.0u";
src = fetchurl {
- url = "mirror://sourceforge/gnu-efi/gnu-efi_${version}.orig.tar.gz";
+ url = "mirror://sourceforge/gnu-efi/${name}.orig.tar.gz";
sha256 = "0klkdxh1aqwwfm393q67nxww6liffyp2lfybbnh4q819b06la39w";
};
- meta = {
- 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"];
- };
+ arch = with stdenv.lib; head (splitString "-" stdenv.system);
makeFlags = [
"CC=gcc"
@@ -34,8 +26,17 @@ let version = "3.0u"; in stdenv.mkDerivation {
'';
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; {
+ description = "GNU EFI development toolchain";
+ homepage = http://sourceforge.net/projects/gnu-efi/;
+ license = licenses.bsd3;
+ maintainers = [ stdenv.lib.maintainers.shlevy ];
+ platforms = platforms.linux;
+ };
}