{"id":28728809,"url":"https://github.com/cor/flake-template-dotnet","last_synced_at":"2025-10-04T19:10:15.214Z","repository":{"id":277666893,"uuid":"929854414","full_name":"cor/flake-template-dotnet","owner":"cor","description":"Reproducibly build a dotnet project with Nix","archived":false,"fork":false,"pushed_at":"2025-02-09T15:07:32.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T11:12:17.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T15:07:24.000Z","updated_at":"2025-02-09T15:07:35.000Z","dependencies_parsed_at":"2025-02-15T10:02:43.531Z","dependency_job_id":"0ae415dc-b3f0-4952-abd1-2203ff3697f4","html_url":"https://github.com/cor/flake-template-dotnet","commit_stats":null,"previous_names":["cor/flake-template-dotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cor/flake-template-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cor%2Fflake-template-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cor%2Fflake-template-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cor%2Fflake-template-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cor%2Fflake-template-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cor","download_url":"https://codeload.github.com/cor/flake-template-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cor%2Fflake-template-dotnet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259998892,"owners_count":22943890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-15T15:38:44.594Z","updated_at":"2025-10-04T19:10:10.136Z","avatar_url":"https://github.com/cor.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET/Nix Project Template\n\nA template for building .NET applications with Nix (+Refit HTTP client as a nuget dependency example)\n\n## How to reproducibly build and run\n```bash\nnix build\n./result/bin/MyApp\n\n# Or run directly\nnix run\n```\n\n## Adding New NuGet Dependencies\nFollow these steps to add a new NuGet package:\n\n1. **Add package reference** to `MyApp.csproj`:\n```xml\n\u003cPackageReference Include=\"New.Package\" Version=\"X.Y.Z\" /\u003e\n```\n\n2. **Update `deps.nix`** with a new entry (use placeholder hash first):\n```nix\n  (fetchNuGet {\n    pname = \"New.Package\";\n    version = \"X.Y.Z\";\n    sha256 = lib.fakeHash; # Temporary placeholder\n  })\n```\n\n3. **Get real SHA256 hash** by building and extracting the sha-256 from the output:\n```bash\nnix build -L\n# observe what the sha-256 should be\n```\n\n4. **Replace** `lib.fakeHash` with the actual hash output by the nix build error\n\n## Development Environment\n```bash\n# Enter development shell with all tools\nnix develop\n\n# Normal .NET commands work inside the shell:\ndotnet build\ndotnet run\n```\n\n### Editor Setup\nThe dev shell includes:\n- Omnisharp (C# language server)\n- .NET SDK 8.0\n- NuGet dependency tools\n\nEnsure your editor uses the `./.nuget-packages` directory for packages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcor%2Fflake-template-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcor%2Fflake-template-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcor%2Fflake-template-dotnet/lists"}