From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- pkgs/custom-hello.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/custom-hello.nix (limited to 'pkgs/custom-hello.nix') 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"; + }; +} -- cgit v1.2.3