Home

tmpls @devflake - refs - log -
-
https://git.jolheiser.com/tmpls.git
tmpl templates
tmpls / template / flake.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs{{if unstable}}/nixpkgs-unstable{{end}}";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = {
    self,
    flake-utils,
    nixpkgs,
  }:
    flake-utils.lib.eachDefaultSystem (
      system: let
        pkgs = nixpkgs.legacyPackages.${system};
      in {
        devShells.default = pkgs.mkShell {
          nativeBuildInputs = with pkgs; [
            {{- range $pkg := (splitList "\n" packages)}}
            {{trim $pkg}}
            {{- end}}
          ];
        };
      }
    );
}