mic92: improve tinc cross-compiling

This commit is contained in:
Jörg Thalheim 2020-11-19 23:36:52 +01:00
parent c334743d6f
commit d9dfd892bf
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -112,13 +112,15 @@ let
hostsArchive = mkOption { hostsArchive = mkOption {
type = types.package; type = types.package;
default = pkgs.runCommand "retiolum-hosts.tar.bz2" {} '' default = pkgs.runCommand "retiolum-hosts.tar.bz2" {
nativeBuildInputs = [ pkgs.gnutar pkgs.coreutils ];
} ''
cp \ cp \
--no-preserve=mode \ --no-preserve=mode \
--recursive \ --recursive \
${tinc.config.hostsPackage} \ ${tinc.config.hostsPackage} \
hosts hosts
${pkgs.gnutar}/bin/tar -cjf $out hosts tar -cjf $out hosts
''; '';
readOnly = true; readOnly = true;
}; };