mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 10:17:58 +00:00
commit
a45b9ccbbf
@ -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}
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user