fix(rust): filter out duplicate git sources in subsystem attrs

This commit is contained in:
Yusuf Bera Ertan 2023-03-25 22:42:32 +03:00
parent a67a45657b
commit f9481010cd
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -312,10 +312,12 @@ in {
cargoPackages;
in
l.foldl' l.recursiveUpdate {} allPackageReplacements;
gitSources = l.map (src: src.value) (
l.filter
(src: src.type == "git")
(l.map parseSource parsedDeps)
gitSources = l.unique (
l.map (src: src.value) (
l.filter
(src: src.type == "git")
(l.map parseSource parsedDeps)
)
);
meta = l.foldl' l.recursiveUpdate {} (
l.map