Home

tmpls @27a9c23600f989c0418b51c26d56c262dd234d20 - 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 "," packages)}}
            {{trim $pkg}}
            {{- end}}
          ];
        };
      }
    );
}