This repository has no description
0

Configure Feed

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

justfile: only build with overrides if they exist

+8 -3
+8 -3
justfile
··· 16 16 echo "override for {{ pkg }} created in overrides/{{ pkg }}" 17 17 18 18 _nix cmd *args: 19 - DISTRO_OVERRIDES=$PWD/overrides exec nix {{ cmd }} --impure --print-build-logs {{ 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 20 25 21 26 build pkg: 22 27 #!/usr/bin/env bash ··· 38 43 39 44 exec nix develop .#{{ pkg }} --build "${redirects[@]}" 40 45 41 - run *args: (_nix "run" ".#runner" args) 46 + run *args: (_nix "run" ".#runner" "--" args) 42 47 43 - serve *args: (_nix "run" ".#serve" args) 48 + serve *args: (_nix "run" ".#serve" "--" args)