ovmfvartool: init at unstable-2021-06-16
This commit is contained in:
parent
9c48988907
commit
22bedaa709
33
pkgs/applications/virtualization/ovmfvartool/default.nix
Normal file
33
pkgs/applications/virtualization/ovmfvartool/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, stdenvNoCC, fetchFromGitHub, python3 }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
name = "ovmfvartool";
|
||||
version = "unstable-2021-06-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hlandau";
|
||||
repo = name;
|
||||
rev = "c4c0c24dce1d201f95dfd69fd7fd9d51ea301377";
|
||||
hash = "sha256-3OvYAB41apPn1c2YTKBIEITmHSUMQ0oEijY5DhZWWGo=";
|
||||
};
|
||||
|
||||
postPatch = let
|
||||
pythonPkg = python3.withPackages (p: with p; [ pyyaml ]);
|
||||
in ''
|
||||
# needed in build but /usr/bin/env is not available in sandbox
|
||||
substituteInPlace ovmfvartool \
|
||||
--replace "/usr/bin/env python3" "${pythonPkg.interpreter}"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m 755 ovmfvartool $out/bin/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Parse and generate OVMF_VARS.fd from Yaml";
|
||||
homepage = "https://github.com/hlandau/ovmfvartool";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ baloo raitobezarius ];
|
||||
};
|
||||
}
|
@ -23255,6 +23255,8 @@ with pkgs;
|
||||
tpmSupport = true;
|
||||
};
|
||||
|
||||
ovmfvartool = callPackage ../applications/virtualization/ovmfvartool { };
|
||||
|
||||
ops = callPackage ../applications/virtualization/ops { };
|
||||
|
||||
seabios = callPackage ../applications/virtualization/seabios { };
|
||||
|
Loading…
Reference in New Issue
Block a user