Skip to content

Commit

Permalink
OVMF: get version number from edk2
Browse files Browse the repository at this point in the history
OVMF is built from edk2 sources so that's where its version number comes
from (logically). The edk2 version number is 2014-12-10, so this change
only ensures the version numbers won't drift apart in the future. (There
is no hash change.)
  • Loading branch information
bjornfor committed Apr 23, 2017
1 parent dc87b55 commit ddb788b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/applications/virtualization/OVMF/default.nix
Expand Up @@ -9,10 +9,11 @@ let
else
throw "Unsupported architecture";

version = (builtins.parseDrvName edk2.name).version;
in

stdenv.mkDerivation (edk2.setup "OvmfPkg/OvmfPkg${targetArch}.dsc" {
name = "OVMF-2014-12-10";
name = "OVMF-${version}";

# TODO: properly include openssl for secureBoot
buildInputs = [nasm iasl] ++ stdenv.lib.optionals (secureBoot == true) [ openssl ];
Expand Down

0 comments on commit ddb788b

Please sign in to comment.