A stable replacement for nix run in haskell
Haskell 92.3%
Nix 7.2%
Shell 0.5%
12 1 1

Clone this repository

https://tangled.org/weethet.bsky.social/nix-run
git@tangled.org:weethet.bsky.social/nix-run

For self-hosted knots, clone URLs may differ based on your setup.

readme.txt
Usage: nix-run [fileish] [-p|--package package] [--arg name value]
               [--argstr name value] [-A|--attr attrPath] [-E|--expr expr]
               [-I|--include [name=]path] [--option name value] [--repair]
               [-Q|--no-build-output] [-j|--max-jobs number] [--cores number]
               [--max-silent-time seconds] [--timeout seconds] [-k|--keep-going]
               [-K|--keep-failed] [--fallback] [--readonly-mode] [-v|--verbose]
               [--quiet] [--log-format format] [--check]

  nix-run - run a Nix application

Available options:
  -p,--package package     Build a package by name (conflicts with fileish
                           argument)
  --arg name value         Pass a Nix value for argument 'name'
  --argstr name value      Pass a string value for argument 'name'
  -A,--attr attrPath       Select attribute to build
  -E,--expr expr           Interpret argument as a Nix expression
  -I,--include [name=]path Add a path to the Nix expression search path
  --option name value      Set Lix configuration option
  --repair                 Fix corrupted or missing store paths by redownloading
                           or rebuilding them
  -Q,--no-build-output     Suppress output from builders to stderr
  -j,--max-jobs number     Maximum number of build jobs (or 'auto')
  --cores number           Number of CPU cores to use for building
  --max-silent-time seconds
                           Maximum number of seconds a builder can go without
                           producing output
  --timeout seconds        Maximum number of seconds a builder can run
  -k,--keep-going          Keep going in case of failed builds
  -K,--keep-failed         Keep failed build directories
  --fallback               Fall back on building if substitutes fail
  --readonly-mode          Do not open the Lix database
  -v,--verbose             Increase verbosity
  --quiet                  Decrease verbosity
  --log-format format      Change the output log format (raw, internal-json,
                           bar, bar-with-logs, multiline, multiline-with-logs)
  --check                  Run the build in check mode (pass --check to
                           nix-build)
  -h,--help                Show this help text