clan-sidebus/default.nix

23 lines
540 B
Nix
Raw Permalink Normal View History

let
lockFile = builtins.fromJSON (builtins.readFile ./flake.lock);
flake-compat-node = lockFile.nodes.${lockFile.nodes.root.inputs.flake-compat};
flake-compat = builtins.fetchTarball {
inherit (flake-compat-node.locked) url;
sha256 = flake-compat-node.locked.narHash;
};
flake' = (
import flake-compat {
src = ./.;
}
);
flake = flake'.defaultNix;
in
{
useFlake ? true,
nixpkgs ? if useFlake then flake.inputs.nixpkgs else <nixpkgs>,
pkgs ? import nixpkgs { },
}:
pkgs.callPackage ./scope.nix { }