mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-10 01:42:24 +03:00
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:
parent
a94ed52ff6
commit
a31e29ac73
1 changed files with 8 additions and 1 deletions
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue