From 8f2f1dbb7673fcb94ecf86f396ad0467d142e249 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Thu, 9 Jul 2015 11:11:18 +0200 Subject: [PATCH] qboot: init at pre-release --- .../virtualization/qboot/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/applications/virtualization/qboot/default.nix diff --git a/pkgs/applications/virtualization/qboot/default.nix b/pkgs/applications/virtualization/qboot/default.nix new file mode 100644 index 000000000000..e4439ec124f4 --- /dev/null +++ b/pkgs/applications/virtualization/qboot/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchgit }: + +stdenv.mkDerivation { + name = "qboot-pre-release"; + + src = fetchgit { + url = "https://github.com/yangchengwork/qboot"; + rev = "b2bdaf4c878ef34f309c8c79613fabd1b9c4bf75"; + sha256 = "00f24125733d24713880e430f409d6ded416286d209c9fabb45541311b01cf8d"; + }; + + installPhase = '' + mkdir -p $out + cp bios.bin* $out/. + ''; + + meta = { + description = "A simple x86 firmware for booting Linux"; + homepage = https://github.com/bonzini/qboot; + license = stdenv.lib.licenses.gpl2; + maintainers = with stdenv.lib.maintainers; [ tstrobel ]; + platforms = ["x86_64-linux" "i686-linux"]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 139f655110c8..0a5e40275208 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9055,6 +9055,8 @@ let oracleXE = callPackage ../servers/sql/oracle-xe { }; + qboot = callPackage ../applications/virtualization/qboot { stdenv = stdenv_32bit; }; + OVMF = callPackage ../applications/virtualization/OVMF { seabios=false; openssl=null; }; OVMF-CSM = callPackage ../applications/virtualization/OVMF { openssl=null; }; #WIP: OVMF-secureBoot = callPackage ../applications/virtualization/OVMF { seabios=false; secureBoot=true; };