mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-10 01:42:24 +03:00
9 lines
441 B
Nix
9 lines
441 B
Nix
![]() |
{ candidates }:
|
||
|
with import ../../. {};
|
||
|
let
|
||
|
updatable = lib.filter (pkg: if pkg ? updateAmentVendor then true else lib.warn "${pkg.pname} not updatable" false) candidates;
|
||
|
isDependent = a: b: builtins.elem a (b.buildInputs ++ b.propagatedBuildInputs ++ b.nativeBuildInputs);
|
||
|
sorted = (lib.toposort isDependent updatable).result;
|
||
|
in
|
||
|
map (p: let name = lib.removePrefix "ros-${p.rosDistro}-" p.pname; in "${p.rosDistro}.${name}") sorted
|