tmpls/template/flake.nix

25 lines
562 B
Nix

{
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}}
];
};
}
);
}