Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.22 KB

File metadata and controls

50 lines (35 loc) · 1.22 KB

Nix

This repo uses Nix flakes.

Install Nix (Determinate Systems, non-interactive)

Install + run netprofiler_lite in one copy/paste (no repo clone):

command -v nix >/dev/null 2>&1 || {
  sudo curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix \
    | sh -s -- install --no-confirm
}

if [ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then
  . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
elif [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
  . "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi

nix run --accept-flake-config github:sfcompute/netprofiler_lite#bench

Install only:

sudo curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix \
  | sh -s -- install --no-confirm

. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh

Why --accept-flake-config?

This repo sets nixConfig.extra-substituters. Nix will prompt unless you pass --accept-flake-config or set:

accept-flake-config = true

Add that to ~/.config/nix/nix.conf or /etc/nix/nix.conf.

Common commands

nix build --accept-flake-config
nix run --accept-flake-config .#bench
nix develop --accept-flake-config