summaryrefslogtreecommitdiff
path: root/pkgs/custom-hello.nix
diff options
context:
space:
mode:
authoroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
committeroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
commit9786eb8672213344d8d1b7bdef12bc94510b20db (patch)
treeb7d79440800c92d32187ab32c636b0830c94a610 /pkgs/custom-hello.nix
initialized repository
Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626
Diffstat (limited to 'pkgs/custom-hello.nix')
-rw-r--r--pkgs/custom-hello.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/custom-hello.nix b/pkgs/custom-hello.nix
new file mode 100644
index 0000000..9dbd4df
--- /dev/null
+++ b/pkgs/custom-hello.nix
@@ -0,0 +1,26 @@
+{
+ lib,
+ stdenv,
+ runtimeShell,
+}:
+stdenv.mkDerivation {
+ pname = "hello";
+ version = "1.0";
+
+ dontUnpack = true;
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cat > $out/bin/hello << EOF
+ #!${runtimeShell}
+ echo "Hello, This is an example nix package!"
+ EOF
+ chmod +x $out/bin/hello
+ '';
+
+ meta = {
+ description = "Example package";
+ license = lib.licenses.free;
+ mainProgram = "hello";
+ };
+}