23 lines
363 B
Bash
23 lines
363 B
Bash
#!/usr/bin/env bash
|
|
|
|
nix develop . --command bash -c "dotnet new console"
|
|
|
|
rm Program.cs
|
|
|
|
program="using System;
|
|
|
|
namespace $1
|
|
{
|
|
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
|