criu: add gnutar and gzip in PATH

These binaries are used for some tmpfs-related features of criu as seen here:
https://github.com/checkpoint-restore/criu/blob/fbe26923e85d7759e44666733a54c5ab951e8aa6/criu/filesystems.c#L420 .
These tmpfs-related features are used by e.g. docker checkpoint, see:
https://github.com/NixOS/nixpkgs/pull/230109 .
This commit is contained in:
Victor Buttner
2023-06-02 15:35:28 +02:00
parent 3e313808bd
commit 5994808448
+4 -3
View File
@@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, protobuf, protobufc, asciidoc, iptables
, xmlto, docbook_xsl, libpaper, libnl, libcap, libnet, pkg-config, iproute2
, which, python3, makeWrapper, docbook_xml_dtd_45, perl, nftables, libbsd
, xmlto, docbook_xsl, libpaper, libnl, libcap, libnet, pkg-config, iproute2, gzip
, which, python3, makeWrapper, docbook_xml_dtd_45, perl, nftables, libbsd, gnutar
, buildPackages
}:
@@ -107,7 +107,8 @@ stdenv.mkDerivation rec {
postFixup = ''
wrapProgram $out/bin/criu \
--set-default CR_IPTABLES ${iptables}/bin/iptables \
--set-default CR_IP_TOOL ${iproute2}/bin/ip
--set-default CR_IP_TOOL ${iproute2}/bin/ip \
--prefix PATH : ${lib.makeBinPath [ gnutar gzip ]}
wrapPythonPrograms
'';