Merge pull request #267707 from katexochen/mkosi/19

mkosi: 18 -> 19
This commit is contained in:
Emily Trau 2023-11-29 17:56:26 +11:00 committed by GitHub
commit a45b9ccbbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 10 deletions

View File

@ -20,7 +20,8 @@ In addition to numerous new and upgraded packages, this release has the followin
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
- Create the first release note entry in this section!
- `mkosi` was updated to v19. Parts of the user interface have changed. Consult the
[release notes](https://github.com/systemd/mkosi/releases/tag/v19) for a list of changes.
## Other Notable Changes {#sec-release-24.05-notable-changes}

View File

@ -5,6 +5,7 @@
, python3
, bubblewrap
, systemd
, pandoc
# Python packages
, setuptools
@ -60,14 +61,16 @@ let
in
buildPythonApplication rec {
pname = "mkosi";
version = "18";
version = "19";
format = "pyproject";
outputs = [ "out" "man" ];
src = fetchFromGitHub {
owner = "systemd";
repo = "mkosi";
rev = "v${version}";
hash = "sha256-bnd2P6lq1XqKed3m4hDYrR9IcdrPaJxNBL2Z6jCruV4=";
hash = "sha256-KjJM+KZCgUnsaEN2ZorhH0AR5nmiV2h3i7Vb3KdGFtI=";
};
# Fix ctypes finding library
@ -84,15 +87,12 @@ buildPythonApplication rec {
'';
nativeBuildInputs = [
pandoc
setuptools
setuptools-scm
wheel
];
makeWrapperArgs = [
"--set MKOSI_INTERPRETER ${python3pefile}/bin/python3"
];
propagatedBuildInputs = [
systemdForMkosi
bubblewrap
@ -100,15 +100,28 @@ buildPythonApplication rec {
qemu
];
postInstall = ''
wrapProgram $out/bin/mkosi \
--prefix PYTHONPATH : "$PYTHONPATH"
postBuild = ''
./tools/make-man-page.sh
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mkosi"
];
postInstall = ''
mkdir -p $out/share/man/man1
mv mkosi/resources/mkosi.1 $out/share/man/man1/
'';
makeWrapperArgs = [
"--set MKOSI_INTERPRETER ${python3pefile}/bin/python3"
"--prefix PYTHONPATH : \"$PYTHONPATH\""
];
meta = with lib; {
description = "Build legacy-free OS images";
homepage = "https://github.com/systemd/mkosi";