From a31e29ac73e7fe765f970b1f42dbb5cb1a46c58f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 23 Oct 2024 10:08:06 +0200 Subject: [PATCH] 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. --- release.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/release.nix b/release.nix index b3ba8613fb..1c852a2007 100644 --- a/release.nix +++ b/release.nix @@ -1,4 +1,11 @@ -{ 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 [