nixos-config/packages/scripts/update-go.sh

6 lines
133 B
Bash
Raw Normal View History

#!/usr/bin/env bash
SOURCE=$1
WRITE_PATH=$(realpath $2)
nix run github:darkkirb/gomod2nix -vL -- --dir $SOURCE --outdir $WRITE_PATH