mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
18f08691e3
Use dotnet 6.0, use local nixpkgs
23 lines
540 B
Bash
Executable File
23 lines
540 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -I nixpkgs=../../../../. -i bash -p nuget-to-nix dotnet-sdk
|
|
set -eo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
deps_file="$(realpath "./deps.nix")"
|
|
|
|
cd ../../../..
|
|
store_src="$(nix-build . -A depotdownloader.src --no-out-link)"
|
|
src="$(mktemp -d /tmp/depotdownloader-src.XXX)"
|
|
cp -rT "$store_src" "$src"
|
|
chmod -R +w "$src"
|
|
|
|
pushd "$src"
|
|
|
|
mkdir ./nuget_tmp.packages
|
|
dotnet restore DepotDownloader.sln --packages ./nuget_tmp.packages
|
|
|
|
nuget-to-nix ./nuget_tmp.packages > "$deps_file"
|
|
|
|
popd
|
|
rm -r "$src"
|