Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: use finalAttrs in all packages I maintain #255902

Merged
merged 39 commits into from
Sep 21, 2023

Conversation

doronbehar
Copy link
Contributor

Description of changes

Bring some modernity to packages I maintain.

No substantial change is expected from this PR, though ofborg will report about changed paths, due to some packages changing order of their inputs. If CI is completely green, I'll merge this.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: TeX Issues regarding texlive and TeX in general labels Sep 18, 2023
@piegamesde
Copy link
Member

I'd prefer something like "use finalAttrs in mkDerivation" over "give stdenv.mkDerivation a function". And for those commits which also touch the formatting, maybe "use finalAttrs in mkDerivation + reformat".

@Artturin
Copy link
Member

Artturin commented Sep 18, 2023

In my opinion this all could be in one commit

treewide: format and use finalAttrs in my the packages I(doronbehar) maintain

@doronbehar
Copy link
Contributor Author

I'd prefer something like "use finalAttrs in mkDerivation" over "give stdenv.mkDerivation a function". And for those commits which also touch the formatting, maybe "use finalAttrs in mkDerivation + reformat".

Thanks for the tip, I liked it better too !

@ofborg ofborg bot requested a review from 7c6f434c September 20, 2023 22:03
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100 labels Sep 20, 2023
@doronbehar
Copy link
Contributor Author

Result of nixpkgs-review pr 255902 run on x86_64-linux 1

8 packages marked as broken and skipped:
  • octavePackages.fem-fenics
  • octavePackages.image-acquisition
  • octavePackages.level-set
  • octavePackages.parallel
  • octavePackages.sparsersb
  • octavePackages.tisean
  • octavePackages.vibes
  • octavePackages.vrml
83 packages built:
  • gama
  • jupyter-all
  • jupyter-all.dist
  • librsb
  • libsForQt5.kdeconnect-kde (plasma5Packages.kdeconnect-kde)
  • libsForQt5.kpeoplevcard (plasma5Packages.kpeoplevcard)
  • libsForQt5.plasma-dialer (plasma5Packages.plasma-dialer)
  • libsForQt5.plasma-phonebook (plasma5Packages.plasma-phonebook)
  • libsForQt5.pulseaudio-qt (plasma5Packages.pulseaudio-qt)
  • minc_widgets
  • octave
  • octaveFull
  • octavePackages.arduino
  • octavePackages.audio
  • octavePackages.bim
  • octavePackages.bsltl
  • octavePackages.cgi
  • octavePackages.communications
  • octavePackages.control
  • octavePackages.data-smoothing
  • octavePackages.database
  • octavePackages.dataframe
  • octavePackages.dicom
  • octavePackages.divand
  • octavePackages.doctest
  • octavePackages.econometrics
  • octavePackages.financial
  • octavePackages.fits
  • octavePackages.fpl
  • octavePackages.fuzzy-logic-toolkit
  • octavePackages.ga
  • octavePackages.general
  • octavePackages.generate_html
  • octavePackages.geometry
  • octavePackages.gsl
  • octavePackages.image
  • octavePackages.instrument-control
  • octavePackages.interval
  • octavePackages.io
  • octavePackages.linear-algebra
  • octavePackages.lssa
  • octavePackages.ltfat
  • octavePackages.mapping
  • octavePackages.matgeom
  • octavePackages.miscellaneous
  • octavePackages.msh
  • octavePackages.mvn
  • octavePackages.nan
  • octavePackages.ncarray
  • octavePackages.netcdf
  • octavePackages.nurbs
  • octavePackages.ocl
  • octavePackages.octclip
  • octavePackages.octproj
  • octavePackages.optics
  • octavePackages.optim
  • octavePackages.optiminterp
  • octavePackages.quaternion
  • octavePackages.queueing
  • octavePackages.signal
  • octavePackages.sockets
  • octavePackages.splines
  • octavePackages.statistics
  • octavePackages.stk
  • octavePackages.strings
  • octavePackages.struct
  • octavePackages.symbolic
  • octavePackages.tsa
  • octavePackages.video
  • octavePackages.windows
  • octavePackages.zeromq
  • openems
  • python310Packages.python-csxcad
  • python310Packages.python-csxcad.dist
  • python310Packages.python-openems
  • python310Packages.python-openems.dist
  • python311Packages.python-csxcad
  • python311Packages.python-csxcad.dist
  • python311Packages.python-openems
  • python311Packages.python-openems.dist
  • syncthingtray
  • syncthingtray-minimal
  • vpv

@Artturin Artturin merged commit 8ace65f into NixOS:master Sep 21, 2023
9 checks passed
toastal pushed a commit to toastal/nixpkgs that referenced this pull request Sep 25, 2023
* mpd-touch-screen-gui: use finalAttrs in mkDerivation; reformat

* musescore: use finalAttrs in mkDerivation

* syncthingtray: use stdenv.mkDerivation with a function; reformat

* ocrfeeder: use finalAttrs in mkDerivation; reformat

* castget: use finalAttrs in mkDerivation

* gnome-network-displays: use finalAttrs in mkDerivation

* mailreaders: use finalAttrs in mkDerivation

* mswatch: use finalAttrs in mkDerivation

* uhd: use finalAttrs in mkDerivation

* maxima: use finalAttrs in mkDerivation

* qalculate-gtk: use finalAttrs in mkDerivation

* qalculate-qt: use finalAttrs in mkDerivation

* wxmaxima: use finalAttrs in mkDerivation

* lammps: use finalAttrs in mkDerivation

* mlterm: use finalAttrs in mkDerivation

* video-trimmer: use finalAttrs in mkDerivation

* nerdfonts: use finalAttrs in mkDerivation

* gnomeExtensions.easyScreenCast: use finalAttrs in mkDerivation

* octave: use finalAttrs in mkDerivation; reformat

* comedilib: use finalAttrs in mkDerivation

* cpp-utilities: use finalAttrs in mkDerivation

* libsForQt5.kpeoplevcard: use finalAttrs in mkDerivation; reformat

* liberio: use finalAttrs in mkDerivation

* libqalculate: use finalAttrs in mkDerivation; reformat

* libwtk-sdl2: use finalAttrs in mkDerivation

* libsForQt5.pulseaudio-qt: use finalAttrs in mkDerivation; reformat

* qrupdate: use finalAttrs in mkDerivation; reformat

* libsForQt5.qtforkawesome: use finalAttrs in mkDerivation; reformat

* libsForQt5.qtutilities: use finalAttrs in mkDerivation; reformat

* sqlitecpp: use finalAttrs in mkDerivation; reformat

* tweeny: use finalAttrs in mkDerivation

* volk: use finalAttrs in mkDerivation

* wiringpi: use finalAttrs in mkDerivation

* snzip: use finalAttrs in mkDerivation; reformat

* bpm-tools: use finalAttrs in mkDerivation; reformat

* sacd: use finalAttrs in mkDerivation

* gtk-gnutella: use finalAttrs in mkDerivation; reformat

* sile: use finalAttrs in mkDerivation

* pplatex: use finalAttrs in mkDerivation; reformat
@doronbehar doronbehar deleted the stdenv-finalAttrs branch June 8, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: TeX Issues regarding texlive and TeX in general 8.has: clean-up 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants