Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netcoredbg: init at 1.2.0-825 #103940

Merged
merged 1 commit into from Nov 5, 2021
Merged

Conversation

leo60228
Copy link
Member

@leo60228 leo60228 commented Nov 15, 2020

Motivation for this change

netcoredbg is an open-source debugger for .NET Core applications. The most popular one, vsdbg, is a binary blob distributed with the Visual Studio Code C# extension. However, vsdbg's license is incredibly restrictive. netcoredbg is a drop-in replacement, and is also compatible with other editors.

Note that the package here is... kind of awful. This is both because of the fact that netcoredbg uses CMake in pretty strange ways, and because packaging .NET Core applications in general is pretty bad at the moment.

Closes #103938

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

pkgs/development/tools/misc/netcoredbg/create_deps.sh Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/create_deps.sh Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/create_deps.sh Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/format-deps.sh Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/format-deps.sh Outdated Show resolved Hide resolved
@felschr
Copy link
Member

felschr commented Mar 4, 2021

I'm looking forward to this addition. Great work so far!
Are you planning to finish the PR?

@leo60228
Copy link
Member Author

leo60228 commented Mar 4, 2021

I was having some trouble getting it to build with .NET 5. I'm going to try again soon, maybe later today.

@leo60228 leo60228 force-pushed the netcoredbg branch 3 times, most recently from e8246fc to 18707ef Compare June 4, 2021 21:09
@leo60228
Copy link
Member Author

leo60228 commented Jun 4, 2021

I've updated this to the latest netcoredbg version, .NET 5, and addressed the review.

@leo60228 leo60228 changed the title netcoredbg: init at 1.2.0-635 netcoredbg: init at 1.2.0-786 Jun 4, 2021
@felschr
Copy link
Member

felschr commented Sep 1, 2021

You could get the runtime version with something like this, if that's the problem:

dotnet --list-runtimes | grep -Po '^Microsoft.NETCore.App \K.*?(?= )'

@leo60228 leo60228 changed the title netcoredbg: init at 1.2.0-786 netcoredbg: init at 1.2.0-825 Oct 24, 2021
@leo60228
Copy link
Member Author

Updated to latest netcoredbg and improved packaging.

Copy link
Member

@IvarWithoutBones IvarWithoutBones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor comments, but this mostly looks good :)

pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
@cole-h
Copy link
Member

cole-h commented Oct 26, 2021

@ofborg eval

Copy link
Member

@IvarWithoutBones IvarWithoutBones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more comments :)

pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
Copy link
Member

@IvarWithoutBones IvarWithoutBones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some final nits, though functionality wise this looks good to me 👍

Result of nixpkgs-review run on x86_64-linux

1 package built:
  • netcoredbg

The binary also works perfectly as expected :)

pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/misc/netcoredbg/default.nix Outdated Show resolved Hide resolved
Copy link
Member

@IvarWithoutBones IvarWithoutBones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the work!

@SuperSandro2000 SuperSandro2000 merged commit 354ff09 into NixOS:master Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package netcoredbg
5 participants