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 {
type = types.package;
default = pkgs.runCommand "retiolum-hosts.tar.bz2" {} ''
default = pkgs.runCommand "retiolum-hosts.tar.bz2" {
nativeBuildInputs = [ pkgs.gnutar pkgs.coreutils ];
} ''
cp \
--no-preserve=mode \
--recursive \
${tinc.config.hostsPackage} \
hosts
${pkgs.gnutar}/bin/tar -cjf $out hosts
tar -cjf $out hosts
'';
readOnly = true;
};