1
0
Fork
You've already forked hello-flake-python
0
A simple example of a Nix flake to package a Python program.
  • Nix 90.7%
  • Python 9.3%
2025年10月11日 16:29:46 +01:00
.gitignore Initial commit 2023年04月12日 17:30:37 +00:00
flake.lock drop flake-utils 2025年10月11日 16:29:46 +01:00
flake.nix drop flake-utils 2025年10月11日 16:29:46 +01:00
hello.py initial commit 2023年04月16日 19:18:24 +01:00
LICENSE Initial commit 2023年04月12日 17:30:37 +00:00
pyproject.toml drop flake-utils 2025年10月11日 16:29:46 +01:00
README.md added dev shell 2023年04月17日 11:29:43 +01:00

hello-flake-python

A simple example of a Nix flake to package a Python program. This package contains a single executable that prints a greeting.

Running the executable

There is no need to install anything (except nix). Simply run the command below.

nix run "git+https://codeberg.org/mhwombat/hello-flake-python"

To run a specific branch, use the command below.

nix run "git+https://codeberg.org/mhwombat/hello-flake-python?ref=main"

To run a specific branch and revision, use the command below.

nix run "git+https://codeberg.org/mhwombat/hello-flake-python?ref=main&rev=12011eaa897728c731900b236d09df92bcca818a"

Launching a shell

To get a shell with this package available, use the command below.

nix shell "git+https://codeberg.org/mhwombat/hello-flake-python"

As in the previous section, you can modify the URL to select a specific branch and revision.

Launching a development environment

If you forked or cloned this repo and want to modify the source code, you can get a suitable development environment (with Python and flake-utils) using the command below.

nix develop