#!/usr/bin/env bash nix develop . --command bash -c "dotnet new console" rm Program.cs program="using System; namespace $1 { internal class Program { static void Main(string[] args) { } } }" echo "$program" >Program.cs nix develop . --command bash -c "dotnet restore --use-lock-file" nix run nixpkgs#nuget-to-nix -- ./packages.lock.json >deps.nix