241 Commits

Author SHA1 Message Date
Sigmanificient 0bbc8dffae treewide: set meta.license on hooks 2026-05-25 13:48:20 +02:00
David McFarland bfc94a6c9e nuget-package-hook: add helper to create .nupkg.metadata
This also adds an empty contentHash to the metadata, which is required
to fix a parsing error on sdk 11+.
2026-04-17 09:57:29 -03:00
js6pak f272d819c1 dotnetCorePackages.fetchNupkg: neutralize avalonia.buildservices 2026-03-16 20:53:34 +01:00
quantenzitrone 55280fa564 various: rename references from libX11 to libx11
this shouldn't create any rebuilds
2026-02-06 00:24:34 +01:00
quantenzitrone 03c297aea5 libSM: rename references and deprecate alias
this shouldn't create any rebuilds
2026-02-04 22:59:02 +01:00
quantenzitrone bf63af1851 libICE: rename references and deprecate alias
this shouldn't create any rebuilds
2026-02-04 22:59:00 +01:00
David McFarland 2ce3397562 buildDotnetModule: add dontPublish flag 2025-11-24 19:57:00 -04:00
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Jamie Magee 4e36f266d6 dotnet: remove nuget-to-nix support 2025-08-27 18:25:04 -07:00
David McFarland 4910a4d394 buildDotnetModule: always use --runtime when there's no solution file 2025-08-14 20:07:33 -03:00
David McFarland fe10ae4b0f buildDotnet module: work around broken --runtime in dotnet pack 2025-08-14 19:04:17 -03:00
David McFarland 928293691a dotnet-hook: fix incorrect use of --runtime in pack 2025-08-14 19:04:16 -03:00
David McFarland a298a4dd79 dotnet-hook.sh: fix library path in wrapper
Fixes: 8713126d0f
2025-08-11 12:15:43 -03:00
David McFarland 8713126d0f dotnet-hook.sh: clean up array handling 2025-08-04 10:57:18 -03:00
David McFarland 6fbf1d8a15 dotnet-hook.sh: fix shellcheck warnings 2025-08-04 10:57:18 -03:00
David McFarland 861ed441f6 dotnet-hook.sh: indent 2025-08-04 10:57:18 -03:00
David McFarland e84eb87a63 dotnetHook: remove unused substitutions 2025-08-04 10:57:18 -03:00
David McFarland c8ae12c531 dotnetHook: rename phase functions Hook -> Phase 2025-08-04 10:57:18 -03:00
David McFarland 0a734f6b3a buildDotnetModule: combine hooks 2025-08-04 10:57:18 -03:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Silvan Mosberger d1a4769b38 treewide: nixfmt-rfc-style -> nixfmt
Except:
- Instances in documentation, because people in older versions
  can't switch to nixfmt yet due to it having pointed to nixfmt-classic
  before
- In code that runs based on a CI Nixpkgs version, which is also a bit
  older still
- In update script shebangs, because many of them don't pin Nixpkgs, and run
  with whatever is in NIX_PATH (and it's not easy to fix this, see
  https://github.com/NixOS/nixpkgs/issues/425551)
2025-07-15 22:14:18 +02:00
Adam Dinwoodie 45c64ab798 dotnetenv: remove
This function has no maintainer listed in any of the .nix files, is not
referenced anywhere in the nixpkgs repository, and the last non-trivial
update was in 2011 (30872fb8cc, "Transitive library dependencies are
now propagated", 2011-09-13).
2025-07-11 15:30:51 +01:00
Wolfgang Walther c8d2eca963 .editorconfig: move subfolder config into separate .editorconfig files
This avoids paths in the top-level file getting out-of-sync, because the
.editorconfig files would be moved together with the files they target.
2025-05-07 20:01:35 +02:00
GGG 84aa2c4d8e dotnetCorePackages.autoPatchcilHook: init 2025-04-10 10:06:57 -03:00
Rebecca Turner 5aa2e930ec fetchnuget: improve "multiple hashes" error message 2025-03-25 10:11:28 -07:00
Gaël James 82eb5818d3 buildDotnetModule: add support for installing pre-release tools 2025-02-01 02:11:53 +01:00
K900 81932cf82a Merge remote-tracking branch 'origin/staging-next' into staging 2024-12-20 21:34:46 +03:00
K900 aac7b0adea Merge remote-tracking branch 'origin/master' into staging-next 2024-12-20 21:16:36 +03:00
Martin Weinelt dc24bbfc13 Merge remote-tracking branch 'origin/staging-next' into staging 2024-12-20 00:40:06 +01:00
Martin Weinelt b777b6b53e Merge remote-tracking branch 'origin/master' into staging-next 2024-12-20 00:27:50 +01:00
Victor Engmark 49dc2357b8 dotnet: Avoid double escaping of path
Paths with spaces were escaped within the quotes, resulting in situations
like this one:

```
$ nix-shell maintainers/scripts/update.nix --argstr package nexusmods-app
[omitted]
realpath: "'/home/username/my projects/nixpkgs/pkgs/by-name/ne/nexusmods-app/deps.nix'": No such file or directory
```

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2024-12-19 22:07:55 +01:00
GGG ffcf6b781e addNugetDeps.fetch-deps: remove set -u
It was causing issues with other hooks and things used in the build for packages so I opted to remove it as it wasn't there to start with.
2024-12-19 14:16:17 -03:00
K900 7661b4ac55 Merge remote-tracking branch 'origin/staging-next' into staging 2024-12-19 12:47:54 +03:00
github-actions[bot] dd1d7cff2b Merge master into staging-next 2024-12-18 18:04:46 +00:00
GGG 1cd9516969 treewide: migrate nix-based dotnet lockfiles to JSON 2024-12-17 19:49:03 -03:00
GGG 8ea76507ab dotnetCorePackages.mkNugetDeps: support loading JSON lockfiles 2024-12-17 19:46:36 -03:00
GGG c94c5087cc buildDotnetModule.fetch-deps: use json lockfiles by default 2024-12-17 19:46:36 -03:00
Matt Sturgeon bccae9e7c0 addNuGetDeps: support loading JSON lockfiles
In addition to loading nix lockfiles
2024-12-17 19:46:36 -03:00
Wolfgang Walther 9d243b6e7b treewide: handle *Phases variables __structuredAttrs-agnostically (round 2) (#352709) 2024-12-16 22:36:44 +01:00
Yueh-Shun Li b8d4a65cb1 dotnetFixupHook: append *Phases with appendToVar 2024-12-17 01:46:04 +08:00
Wolfgang Walther e58e0c158e various: replace substituteAll with replaceVarsWith
This covers cases which need to use replaceVarsWith because the use
isExecutable = true.
2024-12-15 13:35:30 +01:00
Silvan Mosberger 667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
github-actions[bot] 171c0c7ed6 Merge master into staging-next 2024-12-07 00:15:17 +00:00
js6pak 895b69405c dotnet: make wrappers usable as DOTNET_ROOT
This simplifies the code a bit and makes it possible to use dotnetCorePackages.combinePackages as dotnet-runtime again.
Partial revert of ddd08e404f.
2024-12-06 10:01:59 -04:00
github-actions[bot] 3a5c0e6ce2 Merge master into staging-next 2024-12-06 00:15:39 +00:00
David McFarland 597474a8f1 dotnet: nixfmt output of nuget-to-nix 2024-12-05 10:09:05 -04:00
github-actions[bot] da04282d8f Merge master into staging-next 2024-12-05 06:05:05 +00:00
David McFarland 04f1c8b4ea buildDotnetGlobalTool: add default updateScript 2024-12-03 10:29:24 -04:00