567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
780 B
Nix
38 lines
780 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyyaml,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "ovmfvartool";
|
|
version = "unstable-2022-09-04";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hlandau";
|
|
repo = "ovmfvartool";
|
|
rev = "45e6b1e53967ee6590faae454c076febce096931";
|
|
hash = "sha256-XbvcE/MXNj5S5N7A7jxdwgEE5yMuB82Xg+PYBsFRIm0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyyaml ];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ovmfvartool" ];
|
|
|
|
meta = {
|
|
description = "Parse and generate OVMF_VARS.fd from Yaml";
|
|
mainProgram = "ovmfvartool";
|
|
homepage = "https://github.com/hlandau/ovmfvartool";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
baloo
|
|
raitobezarius
|
|
];
|
|
};
|
|
}
|