criu: add gnutar and gzip in PATH

These binaries are used for some tmpfs-related features of criu as seen here:
fbe26923e8/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

View file

@ -1,6 +1,6 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, protobuf, protobufc, asciidoc, iptables { stdenv, lib, fetchFromGitHub, fetchpatch, protobuf, protobufc, asciidoc, iptables
, xmlto, docbook_xsl, libpaper, libnl, libcap, libnet, pkg-config, iproute2 , xmlto, docbook_xsl, libpaper, libnl, libcap, libnet, pkg-config, iproute2, gzip
, which, python3, makeWrapper, docbook_xml_dtd_45, perl, nftables, libbsd , which, python3, makeWrapper, docbook_xml_dtd_45, perl, nftables, libbsd, gnutar
, buildPackages , buildPackages
}: }:
@ -107,7 +107,8 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
wrapProgram $out/bin/criu \ wrapProgram $out/bin/criu \
--set-default CR_IPTABLES ${iptables}/bin/iptables \ --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 wrapPythonPrograms
''; '';