Restructure source
This commit is contained in:
parent
09edd097b9
commit
c7685334cf
8 changed files with 9 additions and 8 deletions
|
|
@ -1,10 +1,5 @@
|
||||||
{
|
{
|
||||||
outputs = _: {
|
outputs = _: {
|
||||||
lib = let
|
lib = import ./lib;
|
||||||
jailLib = import ./lib.nix;
|
|
||||||
in {
|
|
||||||
init = pkgs: jailLib { inherit pkgs; };
|
|
||||||
extend = jailLib;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
6
lib/default.nix
Normal file
6
lib/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
let
|
||||||
|
jailNix = import ./jail.nix;
|
||||||
|
in {
|
||||||
|
init = pkgs: jailNix { inherit pkgs; };
|
||||||
|
extend = jailNix;
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
outputs = { nixpkgs, ... }: let
|
outputs = { nixpkgs, ... }: let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
jail-nix.lib.extend = import ../lib.nix;
|
jail-nix.lib = import ../lib;
|
||||||
|
|
||||||
ansi = clrCode: "[${toString clrCode}m";
|
ansi = clrCode: "[${toString clrCode}m";
|
||||||
green = ansi 32;
|
green = ansi 32;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
helpers = throw "Docs must not depend on helpers";
|
helpers = throw "Docs must not depend on helpers";
|
||||||
}
|
}
|
||||||
[
|
[
|
||||||
(import ../combinators.nix)
|
(import ../lib/combinators.nix)
|
||||||
(lib.filterAttrs (_: v: !(v ? deprecated && v.deprecated)))
|
(lib.filterAttrs (_: v: !(v ? deprecated && v.deprecated)))
|
||||||
(lib.mapAttrsToList formatCombinatorDoc)
|
(lib.mapAttrsToList formatCombinatorDoc)
|
||||||
(lib.concatStringsSep "\n\n")
|
(lib.concatStringsSep "\n\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue