mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-09 17:42:22 +03:00

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.
14 lines
401 B
Nix
14 lines
401 B
Nix
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 ? []
|
|
, ... }@args:
|
|
|
|
import nixpkgs (args // {
|
|
overlays = [ (import ./overlay.nix) ] ++ overlays;
|
|
})
|