crane/extra-tests/fetch-cargo-git/test.sh
Ivan Petkov 6f7504ad93
Drop dependency on nixpkgs (#692)
Callers should use `mkLib` with an instantiation of `pkgs` instead of
using `crane.lib.${system}` directly
2024-08-29 23:29:16 +00:00

13 lines
301 B
Bash
Executable File

#!/bin/sh
set -eu
scriptDir=$(dirname "$0")
cd "${scriptDir}"
nixpkgsOverride="$(../../ci/ref-from-lock.sh ../../test#nixpkgs)"
craneOverride="--override-input crane ../.. --override-input nixpkgs ${nixpkgsOverride}"
# Try fetching the git verision of cargo
nix build ${craneOverride} .#cargo-git