mic92: improve tinc cross-compiling
This commit is contained in:
parent
c334743d6f
commit
d9dfd892bf
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user