diff --git a/LICENSE b/LICENSE index 56f09eef2fcb045775f1176b5e417354fc5b0851..c46b0cae6efdc37514910362220f24c806d21ad9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ Copyright (c) 2023 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 f20cea826294cc905584c3a2d7db32ca10a81577..4b65cbd7f473a3f060a1d9842b4d0d166b846563 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/template/.tmplkeep b/template/.tmplkeep new file mode 100644 index 0000000000000000000000000000000000000000..b4bd1aa2c0361fceac3ec18f307d949a46122254 --- /dev/null +++ b/template/.tmplkeep @@ -0,0 +1 @@ +Delete this file and put something else here! \ No newline at end of file diff --git a/template/flake.nix b/template/flake.nix deleted file mode 100644 index 435bab04827e3b746ddcdc3f6300b9fb2ed73aba..0000000000000000000000000000000000000000 --- a/template/flake.nix +++ /dev/null @@ -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 "," packages)}} - {{trim $pkg}} - {{- end}} - ]; - }; - } - ); -} \ No newline at end of file diff --git a/tmpl.yaml b/tmpl.yaml index 153d2c981a60de3c916ee538183551876ae33b4d..a259ff026347333f1b67e52d5b7749ad168925ff 100644 --- a/tmpl.yaml +++ b/tmpl.yaml @@ -1,8 +1,16 @@ +# tmpl.yaml +# Write any template args here to prompt the user for, giving any defaults/options as applicable + prompts: + - id: name +prompts: - id: unstable +prompts: label: Use unstable +prompts: help: Blank for stable, non-blank for unstable +prompts: - id: packages +prompts: label: Packages - help: nixpkgs delimited by comma