This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1_help: 2 @just --list 3 4eject pkg: 5 #!/usr/bin/env bash 6 set -e 7 if [ -d "overrides/{{ pkg }}" ]; then 8 echo "override for {{ pkg }} already exists" 9 exit 1 10 fi 11 12 src=$(nix build .#{{ pkg }}.src --print-out-paths) 13 mkdir -p overrides/{{ pkg }} 14 cp -r $src overrides/{{ pkg }}/src 15 chmod -R u+w overrides/{{ pkg }}/src 16 echo "override for {{ pkg }} created in overrides/{{ pkg }}" 17 18_nix cmd *args: 19 #!/usr/bin/env bash 20 if [ -d overrides ]; then 21 DISTRO_OVERRIDES=$PWD/overrides exec nix {{ cmd }} --impure --print-build-logs {{ args }} 22 else 23 exec nix {{ cmd }} --print-build-logs {{ args }} 24 fi 25 26build pkg: 27 #!/usr/bin/env bash 28 set -e 29 if [ ! -d "overrides/{{ pkg }}" ]; then 30 exec just _nix build .#{{ pkg }} 31 fi 32 33 redirects=() 34 for package in $(ls overrides); do 35 for output in $(ls overrides/$package/outputs); do 36 redirects+=(--redirect .#$package.$output $PWD/overrides/$package/outputs/$output) 37 done 38 done 39 40 cd overrides/{{ pkg }} 41 rm -rf outputs 42 mkdir outputs 43 44 exec nix develop .#{{ pkg }} --build "${redirects[@]}" 45 46run *args: (_nix "run" ".#runner" "--" args) 47 48serve *args: (_nix "run" ".#serve" "--" args)