summaryrefslogtreecommitdiff
path: root/templates/basic/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-30 13:13:21 -0400
committerseth <[email protected]>2023-08-30 13:17:40 -0400
commit584fab5b00d5d6016ba11a30c8e31a6314a5ce65 (patch)
tree1e7abb71f4715dca2b916a5ab4df098d31104bd6 /templates/basic/default.nix
parent99e97b17e9b4e4f3d655aab9822402cb8545331e (diff)
refactor: don't instantiate nixpkgs
https://zimbatm.com/notes/1000-instances-of-nixpkgs
Diffstat (limited to 'templates/basic/default.nix')
-rw-r--r--templates/basic/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/basic/default.nix b/templates/basic/default.nix
new file mode 100644
index 0000000..5d0e6a1
--- /dev/null
+++ b/templates/basic/default.nix
@@ -0,0 +1,25 @@
+{
+ lib,
+ stdenv,
+ self,
+ version,
+ ...
+}:
+stdenv.mkDerivation {
+ pname = "hello";
+ inherit version;
+
+ src = self;
+
+ installPhase = ''
+ echo "hi" > $out
+ '';
+
+ meta = with lib; {
+ description = "";
+ homepage = "";
+ license = licenses.mit;
+ maintainers = [maintainers.getchoo];
+ platforms = platforms.linux;
+ };
+}