NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.83k stars 13.22k forks source link

gdc does not include gdmd #324961

Open jtbx opened 4 weeks ago

jtbx commented 4 weeks ago

Describe the bug

The gdc package does not include the gdmd wrapper script, needed for compatibility with the DMD compiler.

Steps To Reproduce

$ nix build nixpkgs#gdc
$ ls result/bin/gdc
result/bin/gdc
$ ls result/bin/gdmd
ls: cannot access 'result/bin/gdmd': No such file or directory

Expected behavior

gdmd should be part of the gdc package.

Additional context

gdmd allows GDC to bootstrap the DMD compiler.

Notify maintainers

@Ericson2314 @Synthetica9 @vcunat

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.11-300.fc40.x86_64, Fedora Linux, 40 (Sway), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.22.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

CyberShadow commented 4 weeks ago

I think Iain said that gdmd was essentially a third party project, unaffiliated with GDC. But, I agree that it's useful, and it would make sense to package it in nixpkgs.

CyberShadow commented 4 weeks ago

CC @ibuclaw

CyberShadow commented 4 weeks ago

Ah, I see it's under the same GitHub org now: https://github.com/D-Programming-GDC/gdmd

jtbx commented 4 weeks ago

I think Iain said that gdmd was essentially a third party project, unaffiliated with GDC.

Oh is it? It's in old GDC archives, but I couldn't find it anywhere in the GDC source tree.

Ah, I see it's under the same GitHub org now: https://github.com/D-Programming-GDC/gdmd

That's great, I'm not sure how to incorporate that into the gcc package though. If someone here could help that would be awesome.

CyberShadow commented 4 weeks ago

I'm not sure how to incorporate that into the gcc package though.

Any reason why it has to be part of the gcc package, as opposed to packaged as a stand alone tool?

jtbx commented 4 weeks ago

Good point, I'll add that in #324982.