tmpls @main -
refs -
log -
-
https://git.jolheiser.com/tmpls.git
tmpl templates
feat: devflake
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmTdk4gACgkQuFOtpdp7
v3o0YA//fO9yp6qApY1TX9pzzad0CUEmUniTPZak/Z93ZSERJ6JvCEJTeZ7sjf17
rmV4btG89ZsyBoz8fBc8+cAGSNEgCxtGwJFSfjUjUGOUkrUd2PawH0MeOTlS92xd
r6TxY9J6NeiBFx2O9ws/KwqZ3yOJdoiM/gB1uvYIq0ZNBIkt9+mF/GTBLbOhFh/p
hESzAanhTet/DrcXqgmQWzJMn6FlM/3O4nN3fMrF2vZ05KC34lNcNW+by6Gy1DBq
WIh//mTdDLoK6oVWWknMzK55nUCBh2oOcgLs2CyxPy5xOaFw1c4MFcXgvGLE3Y19
pJJI5xUl7WQBgWhFVnktEceXDHUoM2DH3HbBoIG1LCIWpUiKO9sHYT67H9K8WrWu
AuqbcnJ+KEAhbhS/SWXQxx1vVjqZQk7ZMbfqWdujO2QErw7QzafyjdlVjMbqViQ5
Nh5vZ6/2L4IDti6VcIASfYBTZgVSk0crDD3CUg1LD7HgicC1qC077pv1WbDityL3
wHhlJoYYmEKtDCiYYHnauouva4dd77mEGIBn2GXAQf89SIw9pStkXhyUgjddFx7M
4Ur0T6qhMKTIYlu/zzfSH33bllOHzO8SoFKS3dAkK/tp/p2k8zATJJ5S0cRyHcT7
hv/JYwncNa7RQR4wcm1g4W1vuDEo2JYXCBh7zeqBFJT9Y+7X+jY=
=D+tb
-----END PGP SIGNATURE-----
5 changed files, 35 additions(+), 7 deletions(-)
diff --git a/LICENSE b/LICENSE
index c46b0cae6efdc37514910362220f24c806d21ad9..56f09eef2fcb045775f1176b5e417354fc5b0851 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,5 @@
Copyright (c) 2020 John Olheiser
+furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 4b65cbd7f473a3f060a1d9842b4d0d166b846563..f20cea826294cc905584c3a2d7db32ca10a81577 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-# tmpl templates
+# devflake
-Check out the various branches for some basic examples of templates.
+Create a simple `flake.nix` for `nix develop`
## License
diff --git a/template/.tmplkeep b/template/.tmplkeep
deleted file mode 100644
index b4bd1aa2c0361fceac3ec18f307d949a46122254..0000000000000000000000000000000000000000
--- a/template/.tmplkeep
+++ /dev/null
@@ -1 +0,0 @@
-Delete this file and put something else here!
\ No newline at end of file
diff --git a/template/flake.nix b/template/flake.nix
new file mode 100644
index 0000000000000000000000000000000000000000..435bab04827e3b746ddcdc3f6300b9fb2ed73aba
--- /dev/null
+++ b/template/flake.nix
@@ -0,0 +1,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}}
+ ];
+ };
+ }
+ );
+}
\ No newline at end of file
diff --git a/tmpl.yaml b/tmpl.yaml
index a259ff026347333f1b67e52d5b7749ad168925ff..153d2c981a60de3c916ee538183551876ae33b4d 100644
--- a/tmpl.yaml
+++ b/tmpl.yaml
@@ -1,11 +1,14 @@
+prompts:
+# tmpl.yaml
# tmpl.yaml
+# tmpl.yaml
# Write any template args here to prompt the user for, giving any defaults/options as applicable
+# tmpl.yaml
+# tmpl.yaml
prompts:
+# tmpl.yaml
- id: name
+# tmpl.yaml
label: Name
- default: MyProject
- - id: lang
- label: Language
- default: Go