default.nix: init
...adds callPackage-able scope.nix and a flake-compat-based entrypoint at default.nix
This commit is contained in:
parent
a7fe813f17
commit
c275340694
4 changed files with 138 additions and 38 deletions
35
default.nix
Normal file
35
default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
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
|
||||
|
||||
{
|
||||
nixpkgs ? flake.inputs.nixpkgs,
|
||||
pkgs ? import nixpkgs { },
|
||||
sidebus-src ? flake.inputs.sidebus,
|
||||
muvm-src ? flake.inputs.muvm-src,
|
||||
libkrun-src ? flake.inputs.libkrun-src,
|
||||
wl-backdrop-src ? flake.inputs.wl-backdrop,
|
||||
}:
|
||||
|
||||
pkgs.callPackage ./scope.nix {
|
||||
inputs = {
|
||||
inherit
|
||||
libkrun-src
|
||||
muvm-src
|
||||
sidebus-src
|
||||
wl-backdrop-src
|
||||
;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue