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