[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make trackGit add default.nix



trackGit should look for a default.nix file and ask if we want one. If
yes, it should copy in a template from ~/.templates like:

    {
      packageOnly ? true,
      pkgs        ? import ./pkgs.nix,
      /* OTHER DEPENDENCIES GO HERE*/
    }:
    with builtins;
    with pkgs;
    with { defs = rec {
      package = abort "Replace this with your main package derivation";
    }; };
    if packageOnly
       then defs.package
       else defs