This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/scripts/update-go.sh

7 lines
228 B
Bash
Raw Normal View History

2022-09-25 16:06:38 +00:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-prefetch
PACKAGE_PATH=$1
WRITE_PATH=$2
nix-prefetch "{ sha256 }: (callPackage (import $PACKAGE_PATH) { }).go-modules.overrideAttrs (_: { modSha256 = sha256; })" > $WRITE_PATH