diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-11-29 12:01:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 12:01:23 +0000 |
commit | e019e7cdb1806ef1a27394d3fffda700860321cd (patch) | |
tree | 01ea880f8bddce234578408f82f1846c7889bae9 /pkgs/tools/virtualization | |
parent | e2e339af901485e2f147e1761ac0bfa762a8b9c1 (diff) | |
parent | d6199b375eaac842cad500094802bebae2fefafb (diff) | |
download | nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.tar nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.tar.gz nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.tar.bz2 nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.tar.lz nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.tar.xz nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.tar.zst nixlib-e019e7cdb1806ef1a27394d3fffda700860321cd.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/virtualization')
-rw-r--r-- | pkgs/tools/virtualization/mininet/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/virtualization/mkosi/default.nix | 31 |
2 files changed, 25 insertions, 14 deletions
diff --git a/pkgs/tools/virtualization/mininet/default.nix b/pkgs/tools/virtualization/mininet/default.nix index 7372d51a62fa..c33389861dd0 100644 --- a/pkgs/tools/virtualization/mininet/default.nix +++ b/pkgs/tools/virtualization/mininet/default.nix @@ -9,7 +9,7 @@ let in stdenv.mkDerivation rec { pname = "mininet"; - version = "2.3.0"; + version = "2.3.1b4"; outputs = [ "out" "py" ]; @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { owner = "mininet"; repo = "mininet"; rev = version; - sha256 = "sha256-bCppmeB+zQMKTptnzhsXtl72XJXU3USo7cQgP1Z6SrY="; + hash = "sha256-Z7Vbfu0EJ4+rCpckXrt3hgxeB9N2nnyPIXgPBnpV4uw="; }; buildFlags = [ "mnexec" ]; @@ -41,9 +41,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Emulator for rapid prototyping of Software Defined Networks"; - license = { - fullName = "Mininet 2.3.0 License"; - }; + license = licenses.bsd3; platforms = platforms.linux; homepage = "https://github.com/mininet/mininet"; maintainers = with maintainers; [ teto ]; diff --git a/pkgs/tools/virtualization/mkosi/default.nix b/pkgs/tools/virtualization/mkosi/default.nix index 3b1a4988f47d..38ffb1cd4838 100644 --- a/pkgs/tools/virtualization/mkosi/default.nix +++ b/pkgs/tools/virtualization/mkosi/default.nix @@ -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"; |