summaryrefslogtreecommitdiff
path: root/templates/system-flake/pkgs/hello-world/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system-flake/pkgs/hello-world/default.nix')
-rw-r--r--templates/system-flake/pkgs/hello-world/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/system-flake/pkgs/hello-world/default.nix b/templates/system-flake/pkgs/hello-world/default.nix
new file mode 100644
index 0000000..19047a1
--- /dev/null
+++ b/templates/system-flake/pkgs/hello-world/default.nix
@@ -0,0 +1,14 @@
+{stdenv, ...}:
+stdenv.mkDerivation {
+ name = "hello-world";
+ version = "1.0.0";
+
+ src = ./.;
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp hello-world $out/bin
+ '';
+
+ meta.mainProgram = "hello-world";
+}