aboutsummaryrefslogblamecommitdiff
path: root/lib/default.nix
blob: 7b392f1de44e14d10d4be8e73f693260fb8b3bbc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

          
     
                                          
                                  
 




                                 

                                   

                                        
                                                                             
{ pkgs }:
with pkgs;
rec {
  flakeCompat = import ./flake-compat.nix;
  nodeEnv = import ./node-env.nix;

  fetchedGithub = path:
    let
      json = lib.importJSON path;
    in rec {
      version = json.tag;
      pname = json.meta.name;
      name = "${pname}-${version}";
      src = fetchFromGitHub json.github;
    };
} // (if builtins.pathExists ./private then callPackage ./private {} else {})