release.nix: Don't try to access absolute paths

This fixes the following error reported by Hydra:

    error: access to absolute path '/lib' is forbidden in restricted mode
This commit is contained in:
Michal Sojka 2024-10-23 10:29:49 +02:00 committed by Ben Wolsieffer
parent a31e29ac73
commit 894271ba89

View file

@ -6,9 +6,8 @@ let
};
in
{ nixpkgs ? lockedNixpkgs, nix-ros-overlay ? ./., distro ? null }:
with import (nixpkgs + /lib);
let
releasePackages = mapAttrs (_: a: removeAttrs a [
releasePackages = builtins.mapAttrs (_: a: removeAttrs a [
"lib"
"python"
"python3"