Commit Graph

329 Commits

Author SHA1 Message Date
David McFarland
8b193a46be
dotnet: october 2024 releases (#348077) 2024-10-15 10:51:53 -03:00
David McFarland
8bf19672de dotnet: add suffix to stage0 package names 2024-10-14 18:47:32 -03:00
David McFarland
031e1d90b7 dotnet: 9.0.0-rc.1 -> 9.0.0-rc.2 2024-10-14 18:47:31 -03:00
David McFarland
1762a39930 dotnet: 8.0.8 -> 8.0.10 2024-10-14 18:47:31 -03:00
David McFarland
10caab00e5 dotnet-bin: 9.0.0-rc.1 -> 9.0.0-rc.2 2024-10-14 18:47:31 -03:00
David McFarland
8bc360991f dotnet-bin: 8.0.8 -> 8.0.10 2024-10-14 18:47:31 -03:00
David McFarland
9f96b62e23 dotnet-bin: 6.0.33 -> 6.0.35 2024-10-14 18:47:31 -03:00
David McFarland
7ec29fe50a dotnet: fix leaking gpg-agent in update script 2024-10-14 18:47:31 -03:00
David McFarland
343895ba37 dotnet: pin bootstrap SDKs used in stage0 source builds 2024-10-13 10:33:22 -03:00
David McFarland
df3bbbebcd dotnet: fix updateScript 2024-10-13 10:33:21 -03:00
David McFarland
866c50579c dotnet: fix nixfmt 2024-10-11 22:36:42 -03:00
David McFarland
3a84ed1392 dotnet: add corngood to maintainers 2024-10-08 19:47:35 -03:00
github-actions[bot]
ce44139ef1
Merge master into staging-next 2024-09-25 06:04:53 +00:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
David McFarland
0774f8f9c2 dotnet: add patch to fix fetch-deps in dotnet 9 VMR 2024-09-24 20:43:24 -03:00
David McFarland
ae7b2ae6ee dotnet-sdk-setup-hook: fix typo in cd 2024-09-24 20:43:24 -03:00
David McFarland
3fb0ab6f59 dotnet: disable restore in test project creation 2024-09-24 20:43:24 -03:00
David McFarland
2c97d67f62 dotnet: split sdk packages by platform 2024-09-24 20:43:24 -03:00
David McFarland
4f47ddf1d7 dotnet: set sourceProvenance on binary runtime/sdk 2024-09-24 20:43:24 -03:00
David McFarland
6582132c12 dotnet: format with nixfmt 2024-09-24 20:43:22 -03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
github-actions[bot]
9a6f63ebed
Merge master into staging-next 2024-09-23 18:04:34 +00:00
David McFarland
1b32f1b57c dotnet: remove nuget-package-hook from runtime packages 2024-09-23 11:44:07 -03:00
K900
87cbfcba1c Merge remote-tracking branch 'origin/staging-next' into staging 2024-09-17 21:07:02 +03:00
David McFarland
e6e2f9307e dotnet-sdk-setup-hook.sh: add linkNuGetPackagesAndSources
linkNugetPackages and linkNuGetPackagesAndSources can now be disabled by
setting them to false.

linkNugetPackages will use _linkPackages, which is much faster.
2024-09-17 01:14:27 -03:00
David McFarland
e7fb591c92 dotnet-sdk-setup-hook: configure nuget in sourceRoot
Instead of creating a nuget.config in NIX_BUILD_TOP, and depending on
inheritance from sourceRoot, we'll make the required changes directly in
the latter.  This fixes packages where sourceRoot is NIX_BUILD_TOP.
2024-09-17 01:12:12 -03:00
David McFarland
a0c5f2662d nuget-package-hook: unpack nuspec as lower-case
Some obscure build things, like in the msbuild package, assume that the
nuspec files are lower-case.
2024-09-17 01:12:12 -03:00
David McFarland
ce92a4277e dotnet-sdk-setup-hook: run pre/postConfigureNuGet hooks 2024-09-17 01:12:12 -03:00
David McFarland
65b556ed83 dotnetCorePackages.patchNupkgs: explicitly reference patchelf 2024-09-17 01:12:12 -03:00
David McFarland
7f726285b0 dotnet: use bash instead of tr to downcase package ids 2024-09-17 01:12:12 -03:00
David McFarland
6097d6e202 nuget-package-hook: use sub-shell to set nullglob 2024-09-17 01:12:12 -03:00
David McFarland
bfa7bef5ec dotnet-sdk-setup-hook: fix _linkPackages when src is empty 2024-09-17 01:12:12 -03:00
David McFarland
b1685747a7 nuget-package-hook: move package unpacking from buildDotnetModule 2024-09-17 01:12:11 -03:00
David McFarland
1d4d0d3db7 nuget-to-nix: use dotnet from PATH
The dotnet sdk used usually needs to match the one required by the
project (global.json). Having the dependcy in nix just meant it always
had to be overridden.
2024-09-17 01:12:11 -03:00
David McFarland
773cc0de74 dotnet-sdk-setup-hook: move nuget configuration from dotnetBuildModule 2024-09-17 01:12:11 -03:00
David McFarland
60eb0db2ab dotnet-sdk-setup-hook: add trailing slashes to NUGET_PACKAGES vars 2024-09-17 01:12:11 -03:00
David McFarland
b01ca64670 dotnet-sdk-setup-hook: remove redundant quotes 2024-09-17 01:12:11 -03:00
David McFarland
f820d2cf3c dotnetCorePackages: split fetch-deps logic into addNuGetDeps 2024-09-17 01:12:11 -03:00
github-actions[bot]
1eb2a0e2d5
Merge staging-next into staging 2024-09-16 18:04:57 +00:00
David McFarland
bcc99eb197 dotnet: 9.0.0-preview.7 -> 9.0.0-rc.1 2024-09-16 09:02:56 -03:00
Philip Taron
4160ccc634
treewide: handle *Phases variables __structuredAttrs-agnostically (#339117) 2024-09-07 09:17:57 -07:00
David McFarland
ffe79ab08d
dotnet: expose stage0 vmr derivations (#326815) 2024-09-07 09:00:28 -03:00
David McFarland
6c5a9e5a43 dotnet-sdk-setup-hook: use temporary symlink dir for NUGET_FALLBACK_PACKAGES
Restore operations get extremely slow when there are a lot of paths in
NUGET_FALLBACK_PACKAGES.
2024-09-06 16:05:19 -03:00
David McFarland
2563bd752c dotnet-sdk-setup-hook: make shell vars local 2024-09-06 16:05:19 -03:00
David McFarland
e5cb52bd58 buildDotnetGlobalTool: move into dotnetCorePackages 2024-09-06 16:05:19 -03:00
David McFarland
5b31367e13 buildDotnetModule: move into dotnetCorePackages 2024-09-06 16:05:19 -03:00
David McFarland
7ea78aaf5a dotnetCorePackages.fetchNupkg: split from mkNugetDeps 2024-09-05 23:46:23 -03:00
David McFarland
d4776214f7 mkNugetSource/Deps: move into dotnetCorePackages 2024-09-05 23:46:23 -03:00
David McFarland
04686b6b28 dotnet: add .nupkg.metadata to VMR packages
This fixes nuget-to-nix in projects that use the source-built sdk and
`linkNugetPackages`.
2024-09-05 22:47:39 -03:00
David McFarland
9a14832d2e dotnet: fix fetch-deps in paket projects 2024-09-05 22:47:38 -03:00