17 lines
495 B
Nix
17 lines
495 B
Nix
|
# SPDX-FileCopyrightText: 2023 Hoang Nguyen <folliekazetani@protonmail.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
# NOTE: this file is used solely to register <nixpkgs> into `rules_nixpkgs`
|
||
|
let
|
||
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||
|
src = lock.nodes.nixpkgs.locked;
|
||
|
nixpkgs =
|
||
|
assert src.type == "github";
|
||
|
fetchTarball {
|
||
|
url = "https://github.com/${src.owner}/${src.repo}/archive/${src.rev}.tar.gz";
|
||
|
sha256 = src.narHash;
|
||
|
};
|
||
|
in
|
||
|
import nixpkgs
|