initial commit

This commit is contained in:
Amy de Buitléir 2025-09-04 20:41:38 +01:00
parent 9997760554
commit 4c3ab29f45
5 changed files with 34 additions and 0 deletions

View file

@ -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 ];
};
};
}
);
}

View file

@ -0,0 +1,3 @@
#! /usr/bin/env nix
#! nix shell git+https://codeberg.org/mhwombat/hello-flake --command bash
hello-flake

View file

@ -0,0 +1,4 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p "[hello cowsay]"
hello
cowsay "Pretty cool, huh?"

View file

@ -0,0 +1,4 @@
#! /usr/bin/env nix
#! nix shell nixpkgs#hello nixpkgs#cowsay --command bash
hello
cowsay "Pretty cool, huh?"

View file

@ -0,0 +1,3 @@
#! /usr/bin/env nix
#! nix shell git+https://codeberg.org/mhwombat/hello-flake --command bash
hello-flake