From 4c3ab29f4527c227ce55dda3f6dc0159b46a065e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Thu, 4 Sep 2025 20:41:38 +0100 Subject: [PATCH] initial commit --- source/recipes/devshell/nixpkg/flake.nix | 20 ++++++++++++++++++++ source/recipes/shebang/run-flake.sh | 3 +++ source/recipes/shebang/run-nixpkg-old.sh | 4 ++++ source/recipes/shebang/run-nixpkg.sh | 4 ++++ source/recipes/shebang/run-non-flake.sh | 3 +++ 5 files changed, 34 insertions(+) create mode 100644 source/recipes/devshell/nixpkg/flake.nix create mode 100755 source/recipes/shebang/run-flake.sh create mode 100755 source/recipes/shebang/run-nixpkg-old.sh create mode 100755 source/recipes/shebang/run-nixpkg.sh create mode 100755 source/recipes/shebang/run-non-flake.sh diff --git a/source/recipes/devshell/nixpkg/flake.nix b/source/recipes/devshell/nixpkg/flake.nix new file mode 100644 index 0000000..83db46c --- /dev/null +++ b/source/recipes/devshell/nixpkg/flake.nix @@ -0,0 +1,20 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells = rec { + default = pkgs.mkShell { + packages = [ pkgs.cowsay ]; + }; + }; + } + ); +} diff --git a/source/recipes/shebang/run-flake.sh b/source/recipes/shebang/run-flake.sh new file mode 100755 index 0000000..244c406 --- /dev/null +++ b/source/recipes/shebang/run-flake.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env nix +#! nix shell git+https://codeberg.org/mhwombat/hello-flake --command bash +hello-flake diff --git a/source/recipes/shebang/run-nixpkg-old.sh b/source/recipes/shebang/run-nixpkg-old.sh new file mode 100755 index 0000000..6e008be --- /dev/null +++ b/source/recipes/shebang/run-nixpkg-old.sh @@ -0,0 +1,4 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p "[hello cowsay]" +hello +cowsay "Pretty cool, huh?" diff --git a/source/recipes/shebang/run-nixpkg.sh b/source/recipes/shebang/run-nixpkg.sh new file mode 100755 index 0000000..241867e --- /dev/null +++ b/source/recipes/shebang/run-nixpkg.sh @@ -0,0 +1,4 @@ +#! /usr/bin/env nix +#! nix shell nixpkgs#hello nixpkgs#cowsay --command bash +hello +cowsay "Pretty cool, huh?" diff --git a/source/recipes/shebang/run-non-flake.sh b/source/recipes/shebang/run-non-flake.sh new file mode 100755 index 0000000..244c406 --- /dev/null +++ b/source/recipes/shebang/run-non-flake.sh @@ -0,0 +1,3 @@ +#! /usr/bin/env nix +#! nix shell git+https://codeberg.org/mhwombat/hello-flake --command bash +hello-flake