this repo has no description
at main 22 lines 588 B view raw
1{ 2 inputs.flake-compat.url = "github:edolstra/flake-compat"; 3 inputs.flake-compat.flake = false; 4 inputs.nixpkgs-lib.url = "github:nix-community/nixpkgs.lib"; 5 outputs = 6 inputs@{ flake-compat, nixpkgs-lib, ... }: 7 let 8 lib = nixpkgs-lib.lib.extend (import ./lib); 9 inherit (lib.syvl) mk getFlake; 10 in 11 mk { 12 outputs = { 13 inherit mk; 14 __functor = 15 self: src: 16 if ((builtins.isAttrs src) || (lib.isFunction src)) then 17 (mk src) 18 else 19 (getFlake { inherit src flake-compat; }); 20 }; 21 }; 22}