Platonic-Systems / mission-control

A `flake-parts` module for your Nix devshell scripts
https://community.flake.parts/mission-control
MIT License
76 stars 11 forks source link

Add template #9

Closed roberth closed 1 year ago

roberth commented 1 year ago

You could do something like this to avoid copying the lock:

      flake = {
        templates.default.path = (inputs.nixpkgs.lib.cleanSourceWith {
          src = ./.;
          filter = path: type: baseNameOf path == "flake.nix";
        }).outPath;
      };
roberth commented 1 year ago

Well, not src = ./., but the example