I’ve been trying to set up git-credential-manager on my nixos system, a .NET application, but after setting up my credentials, trying to push to a repo fails with:
You must install or update .NET to run this application. App: /nix/store/rqrgzr9rh1m2v4zw016wxdy7hljd8lqf-git-credential-manager-2.3.2/lib/git-credential-manager/git-credential-manager Architecture: x64 Framework: 'Microsoft.NETCore.App', version '7.0.11' (x64) .NET location: /nix/store/7bgjbc315l0y13m00idzx66jbgn78s50-dotnet-sdk-6.0.414 The following frameworks were found: 6.0.22 at [/nix/store/7bgjbc315l0y13m00idzx66jbgn78s50-dotnet-sdk-6.0.414/shared/Microsoft.NETCore.App] Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=7.0.11&arch=x64&rid=nixos.23.11-x64 error: unable to read askpass response from '/nix/store/dplvzqyv0cjb40csd6l9n52appx9sgjc-seahorse-43.0/libexec/seahorse/ssh-askpass'
I’ve already tried this fix from the nixos wiki, but it seems like
pkgs.dotnet-sdk points to an older version of the .NET sdk than the one that the app expects, even though the newer one is installed.