release.nix: Use lockedNixpkgs as in default.nix

This ensures that CI using release.nix builds the same code as will be
used by users.

This simply copies the code from default.nix.
This commit is contained in:
Michal Sojka 2024-10-23 10:08:06 +02:00 committed by Ben Wolsieffer
parent a94ed52ff6
commit a31e29ac73

View file

@ -1,4 +1,11 @@
{ nixpkgs ? <nixpkgs>, nix-ros-overlay ? ./., distro ? null }:
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
lockedNixpkgs = builtins.fetchTarball {
url = "https://github.com/lopsided98/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
sha256 = lock.nodes.nixpkgs.locked.narHash;
};
in
{ nixpkgs ? lockedNixpkgs, nix-ros-overlay ? ./., distro ? null }:
with import (nixpkgs + /lib);
let
releasePackages = mapAttrs (_: a: removeAttrs a [