Commit Graph

12 Commits

Author SHA1 Message Date
GGG
a00e463c98 dotnetCorePackages.patchNupkgs: fix patchelf usage 2024-12-07 19:12:08 -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
David McFarland
65b556ed83 dotnetCorePackages.patchNupkgs: explicitly reference patchelf 2024-09-17 01:12:12 -03:00
David McFarland
39db502492 dotnet: 9.0.0-preview.6 -> 9.0.0-preview.7 2024-08-20 17:49:24 -03:00
David McFarland
d3ca5027fa dotnet: use unpacked nuget packages 2024-07-31 00:47:14 -03:00
David McFarland
1532eab9b9 patch-nupkgs: fix ilcompiler on darwin 2024-07-07 19:22:19 -03:00
David McFarland
9b13927fd0 patch-nupkgs: add references to dynamically loaded libs
This is what we do in buildDotnetModule. Eventually I'd like to use this
script there as well.
2024-04-04 10:24:55 -03:00
David McFarland
ff5be75ede patch-nupkgs: patch executables only 2024-04-04 10:24:55 -03:00
David McFarland
b3b68a6687 patch-nupkgs: fix race when patching incomplete package 2024-04-04 10:24:54 -03:00
David McFarland
b2c788ad1b patch-nupkgs: use --add-rpath instead of --set-rpath
This avoids stripping $ORIGIN from libs that need it.
2024-04-04 10:24:54 -03:00
David McFarland
043eab9a5a dotnetCorePackages.dotnet_8: init at 8.0.2 2024-03-03 15:15:08 -04:00