mirror of https://cgit.krebsco.de/krops/
populate file: isDerivation -> isStorePath
This commit is contained in:
parent
6ef8900af4
commit
05f0d3b5c1
|
@ -48,14 +48,14 @@ let
|
||||||
config = rsyncDefaultConfig // derivedConfig // sourceConfig;
|
config = rsyncDefaultConfig // derivedConfig // sourceConfig;
|
||||||
derivedConfig = {
|
derivedConfig = {
|
||||||
useChecksum =
|
useChecksum =
|
||||||
if isDerivation source.path
|
if isStorePath source.path
|
||||||
then true
|
then true
|
||||||
else rsyncDefaultConfig.useChecksum;
|
else rsyncDefaultConfig.useChecksum;
|
||||||
};
|
};
|
||||||
sourceConfig =
|
sourceConfig =
|
||||||
filterAttrs (name: _: elem name (attrNames rsyncDefaultConfig)) source;
|
filterAttrs (name: _: elem name (attrNames rsyncDefaultConfig)) source;
|
||||||
sourcePath =
|
sourcePath =
|
||||||
if isDerivation source.path
|
if isStorePath source.path
|
||||||
then quote (toString source.path)
|
then quote (toString source.path)
|
||||||
else quote source.path;
|
else quote source.path;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in New Issue