Commit Graph

128 Commits

Author SHA1 Message Date
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Dmitry Kalinkin
306aabb533
bump yoda and rivet to next major versions, switch to hepmc3 (#349825) 2024-10-20 17:47:05 -04:00
Dmitry Kalinkin
6fc8fe28aa rivet: 3.1.10 -> 4.0.1 2024-10-19 13:34:21 -04:00
Dmitry Kalinkin
082c425593 sherpa: 2.2.15 -> 2.2.16 2024-10-19 13:34:21 -04:00
Philipp Middendorf
1747c62f4b crystfel: 0.11.0 -> 0.11.1 2024-10-14 14:37:42 +02:00
Peder Bergebakken Sundt
cd673393d2 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'``

We're running more and more into patches fetched via `applyPatches`, for the next PR i'll script something to account for that.
2024-10-04 19:38:56 +02: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
Sigmanificient
2ee703dccb pkgs/applications: remove unused arguments 2024-07-26 11:36:49 +02:00
Malo Bourgon
5616391768 python311Packages.nnpdf: unbreak on aarch64-{darwin,linux} 2024-06-28 10:26:33 -07:00
Dmitry Kalinkin
7950c8d688
professor: 2.3.3 -> 2.4.2 (#318911) 2024-06-12 18:26:03 -04:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Jonas Heinrich
ab2d6f7853 treewide: switch from opencascade-occt -> opencascade-occt_7_6 2024-05-05 20:43:44 +02:00
Vladimír Čunát
725f48a252
Merge branch 'master' into staging-next 2024-05-02 09:05:49 +02:00
Sandro
3eabaa6c36
Merge pull request #305305 from pmiddend/update-crystfel-to-0.11.0
crystfel: 0.10.2 -> 0.11.0
2024-05-01 23:30:02 +02:00
github-actions[bot]
09b96cbb7a
Merge master into staging-next 2024-04-30 12:01:12 +00:00
R. Ryantm
50cff5784b xnec2c: 4.4.12 -> 4.4.16 2024-04-29 08:18:03 +00:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
Philipp Middendorf
693a4f85a3 crystfel: 0.10.2 -> 0.11.0 2024-04-26 08:06:29 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
3f388279f7 nnpdf: 4.0.8 -> 4.0.9 2024-03-01 12:36:01 -05:00
Dmitry Kalinkin
3b27f2ac6e
xfitter: fix for recent clang (#288816) 2024-02-14 18:51:35 -05:00
R. Ryantm
fbc1452b83 nnpdf: 4.0.7 -> 4.0.8 2024-01-24 12:00:37 -05:00
Peder Bergebakken Sundt
ab83c53373
Merge pull request #273404 from fedeinthemix/wip-fasthenry
fasthenry: init at 3.0.1
2024-01-13 23:37:50 +01:00
Andreas Rammhold
9eb6350536 xflr5: use fetchsvn instead of fetchzip
The Sourceforge ZIP URLs aren't stable. They (sometimes?) disappear
and throw 404. Probably until someone requests the file to be
generated from the UI. This made the build of xflr5 fail. By using the
SVN checkout we should be on the safer side.
2023-12-20 20:04:46 +01:00
R. Ryantm
8a034b1227 nnpdf: 4.0.6 -> 4.0.7 2023-12-18 04:59:18 -05:00
Federico Beffa
1ff13b86c8 fasthenry: init at 3.0.1 2023-12-13 17:48:20 +01:00
Andreas Rammhold
9808815f41 xflr5: 6.47 -> 6.61
This updates to the latest version. Unfortunately the project stopped
publishing source tarballs in the way we used to consume them. We've
to retrieve a source snapshot from sourceforge's SVN service instead.
The alternative would be a subversion checkout which I don't think is
any better or worse.
2023-11-20 18:45:41 +01:00
Evils
47a196d1f8 xnec2c: add wrapGAppsHook 2023-11-08 14:47:04 +01:00
Ben Darwin
5a82c61519 elmerfem: unstable-2023-02-03 -> 2023-09-18 2023-09-18 13:37:08 -04:00
Philipp Middendorf
8cff0900bc
crystfel: fix x86_64 hash (#238606) 2023-06-20 08:32:03 +02:00
Philipp Middendorf
05f9ddb8b5 crystfel: update dependencies 2023-05-12 07:41:39 +02:00
R. Ryantm
48fe29f726 sherpa: 2.2.14 -> 2.2.15 2023-05-04 09:55:53 +00:00
Weijia Wang
7b57f59155
Merge pull request #218968 from pmiddend/crystfel-aarch64
CrystFEL: support aarch64-linux and HDF5 on Darwin
2023-04-26 19:32:54 +03:00
Ben Darwin
3a39edac80 elmerfem: 9.0 -> unstable-2023-02-03
vtk_8_withQt5 -> vtkWithQt5
2023-04-24 21:47:01 -04:00
Philipp Middendorf
f43390024c crystfel: more review fixes 2023-03-14 08:36:38 +01:00
Philipp Middendorf
d980b91866 crystfel: review fixes 2023-03-08 08:57:52 +01:00
R. RyanTM
02cd0a5dfc
sherpa: 2.2.13 -> 2.2.14 (#220016) 2023-03-07 12:47:54 -05:00
Philipp Middendorf
da46337f0e crystfel: enable aarch64-* and external filter plugins on Darwin 2023-03-07 09:52:58 +01:00
Philipp Middendorf
fca0501c76 crystfel: 0.10.1 → 0.10.2 2023-02-27 09:01:51 +01:00
Artturin
226e149145 treewide: env.NIX_CFLAGS_COMPILE use optionalString instead of optional
env values must be strings
2023-02-22 21:23:05 +02:00
Artturin
6b2a05e190 treewide: manual fixups for
treewide: use toString on list NIX_CFLAGS_COMPILE
treewide: move NIX_CFLAGS_COMPILE to the env attrset
2023-02-22 21:23:04 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Dmitry Kalinkin
ede042f54d
nnpdf: 4.0.4 -> 4.0.6 2023-02-11 14:56:24 -05:00
OPNA2608
c9b4c7dccd treewide: Rename libyamlcpp* to yaml-cpp* 2023-01-31 16:22:54 +01:00
Ben Darwin
4095b8232c vtk, vtkWithQt5: bump from vtk_8 to vtk_9 2023-01-24 12:33:48 -05:00
R. Ryantm
5480bcc212 sherpa: 2.2.12 -> 2.2.13 2023-01-09 22:03:45 +00:00
Mikael Voss
bab5a9ca87
xnec2c: init at 4.4.12 2022-12-31 20:25:23 +01:00
Sandro
2af5bbd2d4
Merge pull request #205900 from pmiddend/crystfel-fix-patch
crystfel: fix symlib hard-coding
2022-12-16 10:30:24 +01:00
Rick van Schijndel
9833d56c24 treewide: mark packages broken that never built on PLATFORM
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken
Tool is still WIP but this is one of the first results.

I manually audited the results and removed some results that were not valid.

Note that some of these packages maybe should have more constrained platforms set
instead of broken set, but I think not being perfectly correct is better than
just keep trying to build all these things and never succeeding.

Some observations:

- Some darwin builds require XCode tools
- aarch64-linux builds sometimes suffer from using gcc9
  - gcc9 is getting older and misses some new libraries/features
- Sometimes tools try to do system detection or expect some explicit settings for
  platforms that are not x86_64-linux
2022-12-13 21:40:12 +01:00