Compare commits

..

No commits in common. "devflake" and "main" have entirely different histories.

5 changed files with 14 additions and 36 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2023 John Olheiser Copyright (c) 2020 John Olheiser
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,6 +1,6 @@
# devflake # tmpl templates
Create a simple `flake.nix` for `nix develop` Check out the various branches for some basic examples of templates.
## License ## License

View File

@ -0,0 +1 @@
Delete this file and put something else here!

View File

@ -1,25 +0,0 @@
{
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}}
];
};
}
);
}

View File

@ -1,9 +1,11 @@
prompts: # tmpl.yaml
- id: unstable # Write any template args here to prompt the user for, giving any defaults/options as applicable
label: Use unstable
type: confirm prompts:
- id: packages - id: name
label: Packages label: Name
help: nixpkgs, one on each line default: MyProject
type: multi - id: lang
label: Language
default: Go