diff --git a/default.nix b/default.nix index 6f3922414d..c8be439d85 100644 --- a/default.nix +++ b/default.nix @@ -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 ? [] , ... }@args: