ofborg/nix/update-crates.sh
Daiderd Jordan bf07e6e0c0
make update-crates pure
This works with --pure now so it doesn't depend on having anything
installed outside of the nix-shell shebang anymore.
2020-05-24 20:26:30 +02:00

7 lines
264 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -E "with import ./nix {}; mkShell { nativeBuildInputs = [ cacert cargo (import (builtins.fetchTarball https://github.com/kolloch/crate2nix/archive/0.8.0.tar.gz) {}) ]; }"
set -e
cargo fetch --locked
crate2nix generate