blob: ae6d512bd03e256d46f1a28e0ea34483c058c7d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "rust-ffi.hh"
extern "C" {
rust::CBox2<rust::Result<std::tuple<>>> unpack_tarfile(rust::Source source, rust::StringSlice dest_dir);
}
namespace nix {
void unpackTarfile(Source & source, Path destDir)
{
unpack_tarfile(source, destDir).use()->unwrap();
}
}
|