mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-09 17:42:22 +03:00
8 lines
441 B
Nix
8 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
|