mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-09 17:42:22 +03:00
Use nixpkgs version from flake by default
When not using flakes, you would immediately start using the latest version of the nix-ros branch whenever I updated it, even if it hadn't been tested or added to the cache yet. Now, it will match the flake locked version by default even when not using flakes.
This commit is contained in:
parent
e761430bde
commit
2c2781805f
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
||||||
{ nixpkgs ? builtins.fetchTarball "https://github.com/lopsided98/nixpkgs/archive/nix-ros.tar.gz"
|
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
|
||||||
, overlays ? []
|
, overlays ? []
|
||||||
, ... }@args:
|
, ... }@args:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue