| 30 Sep 2023 |
mdarocha | also rerun fetch-deps | 11:20:24 |
Ruri | In reply to @magikarpz:matrix.org
Ruri: managed to make it compile with the following code:
{
lib,
fetchFromGitHub,
buildDotnetModule,
dotnetCorePackages,
mono,
dotnet-sdk,
openssh,
}:
buildDotnetModule rec {
fullSrc =
(fetchFromGitHub {
owner = "Assistant";
repo = pname;
rev = "66649a2a343797a98f3228172ffc17052f5442d1";
sha256 = "sha256-iG49/XLi3Skhp8NY5IAqSU5IfMj4y4GNIm2huewiu9Q=";
fetchSubmodules = true;
})
.overrideAttrs (_: {
GIT_CONFIG_COUNT = 1;
GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf";
GIT_CONFIG_VALUE_0 = "git@github.com:";
});
pname = "Hive";
version = "0.0.1";
src = fullSrc;
projectFile = "src/Hive/Hive.csproj";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_6_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
dotnetInstallFlags = [ "--framework" "net6.0" ];
#testProjectFile = "src/Hive.Test/Hive.Tests.csproj";
meta = with lib; {
homepage = "https://github.com/Atlas-Rhythm/Hive";
description = "A general backend project for modding communities";
license = licenses.agpl3Only;
};
}
Thanks! that nix code successfully builds even without updating my flake lockfile, setting the sdk and runtime and using the .csproj file instead of the solution seems to do the trick | 14:31:22 |
| 16 Oct 2023 |
| Emma [it/its] ⚡️ joined the room. | 02:17:41 |
Emma [it/its] ⚡️ | { pkgs ? import <nixpkgs> {} }:
pkgs.symlinkJoin {
name = "dotnet-pack";
paths = [ pkgs.dotnet-sdk_8 pkgs.dotnet-sdk_7 pkgs.dotnet-sdk ];
postBuild = ''
rm -rfv $out/bin
rm -rfv $out/dotnet
cp -rv ${pkgs.dotnet-sdk_8}/dotnet $out/
cp -rv ${pkgs.dotnet-sdk_8}/bin $out/
'';
}
wanted to share this derivation incase anyone ever needed to use multiple dotnet versions at once | 02:18:11 |
Emma [it/its] ⚡️ | [Rory@Rory-desktop:/Rory-Open-Architecture]$ dotnet --list-sdks
6.0.414 [/nix/store/g0j4gcarcbqkxl3i14h4ls3qsmyjdc2m-dotnet-pack/sdk]
7.0.401 [/nix/store/g0j4gcarcbqkxl3i14h4ls3qsmyjdc2m-dotnet-pack/sdk]
8.0.100-rc.1.23455.8 [/nix/store/g0j4gcarcbqkxl3i14h4ls3qsmyjdc2m-dotnet-pack/sdk]
| 02:18:24 |
Emma [it/its] ⚡️ | needed that to make rider work with a solution that has both net7 and net8 | 02:19:11 |
mdarocha | we already have that in nixpkgs | 06:15:39 |
mdarocha | it’s also described in the nixpkgs manual | 06:15:46 |
mdarocha | dotnetCorePackages.combinePackages | 06:15:57 |
| 17 Oct 2023 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] ⚡️ to Emma [it/its] (MRU test) ⚡️. | 15:25:22 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] (MRU test) ⚡️ to Emma [it/its] ⚡️. | 15:32:43 |
| Emma [it/its] ⚡️ | 15:33:56 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] ⚡️ to Emma [it/its] (MRU VeryFast(tm) test) ⚡️. | 15:37:11 |
| Emma [it/its] ⚡️ | 15:37:31 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] (MRU VeryFast(tm) test) ⚡️ to Emma [it/its] (MRU VeryFast(tm) test (maybe??)) ⚡️. | 15:40:44 |
| Emma [it/its] ⚡️ | 15:40:53 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] (MRU VeryFast(tm) test (maybe??)) ⚡️ to Emma [it/its] (test) ⚡️. | 15:42:31 |
| Emma [it/its] ⚡️ | 15:42:50 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] (test) ⚡️ to Emma [it/its] ⚡️. | 16:41:43 |
| 18 Oct 2023 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] ⚡️ to Emma [it/its] global profile test ⚡️. | 03:36:05 |
| Emma [it/its] ⚡️ | 03:36:21 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] global profile test ⚡️ to Emma [it/its] global profile test 2 ⚡️. | 03:50:03 |
| Emma [it/its] ⚡️ | 03:50:13 |
| Emma [it/its] ⚡️ changed their display name from Emma [it/its] global profile test 2 ⚡️ to Emma [it/its] ⚡️. | 04:04:01 |
| 25 Oct 2023 |
| Federico Damián Schonborn changed their profile picture. | 00:13:23 |
| 27 Oct 2023 |
| Federico Damián Schonborn changed their profile picture. | 01:24:54 |
| 1 Nov 2023 |
Emma [it/its] ⚡️ | i wonder if anyone knows how one would go about installing workloads | 15:52:52 |
Emma [it/its] ⚡️ | i'd be fine with throwing dotnet workload install into a derivation, i'd just need to figure out how to make a "NuGet package source" | 15:53:55 |
Emma [it/its] ⚡️ | i wonder if i could write something that spits out an entire tree of derivations | 16:07:24 |
Emma [it/its] ⚡️ | Unhandled exception: System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/home/Rory/git/DotnetManifestsToNix/DotnetManifestsToNix/bin/Debug/net7.0/DotnetManifestsToNix' with working directory '/home/Rory/git/DotnetManifestsToNix/DotnetManifestsToNix'. No such file or directory
i wonder what causes this when using dotnet run | 16:54:39 |