Commit Graph

776 Commits

Author SHA1 Message Date
Reno Dakota
52bf1163fa
treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
piegames
ad8d051645
treewide: Fix indentation in strings (#350296) 2024-10-23 21:44:22 +02:00
piegames
68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +02:00
wxt
a8d211376f cantor: fix build 2024-10-22 20:00:16 +08:00
wxt
ac156c8a50 cantor: nixfmt 2024-10-22 19:25:14 +08:00
K900
f927f502dd plasma5Packages.partitionmanager: remove hfsprogs dependency
Unmaintained, broken, hopefully unnecessary
2024-10-03 16:46:23 +03:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +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]
c248669008
Merge staging-next into staging 2024-09-09 06:05:35 +00:00
Orivej Desh
1fd89a5e8f keysmith: fix empty gui
Withouth kirigami-addons it displays an empty window and prints:

org/kde/kirigami.2/PageRow.qml:914: Error:
Error while loading page: qrc:/UnlockAccounts.qml:12
module "org.kde.kirigamiaddons.labs.mobileform" is not installed
2024-09-08 21:54:34 +00:00
Emily
61922738bb treewide: optimistically unpin FFmpeg 7 dependencies
Per the adjusted FFmpeg pinning advice, packages that work on the
default version should use the unversioned variants to ease the
migration to future versions and reduce the number of packages that
end up referencing old versions.

I have left HandBrake pinned as it builds a custom patched FFmpeg.
2024-09-07 20:31:41 +01:00
Vladimír Čunát
cdc00446f8
spectacle: fix build, missing wayland-scanner 2024-08-31 10:12:23 +02:00
Vladimír Čunát
a6728cf836
gwenview: fix build, missing wayland-scanner 2024-08-31 10:07:48 +02:00
github-actions[bot]
d62aaef66a
Merge master into staging-next 2024-08-28 00:13:03 +00:00
Sandro
58bd90220b
ffmpeg_4: almost drop (#336401) 2024-08-27 22:08:20 +02:00
github-actions[bot]
0629545b27
Merge master into staging-next 2024-08-27 00:13:08 +00:00
Emily
d62b72d4ee libsForQt5.ffmpegthumbs: unpin FFmpeg 4
Builds fine with FFmpeg 7, and Arch ships it like that.
2024-08-22 15:22:20 +01:00
Jade Lovelace
5dfdb09561 tree-wide: remove eelco as maintainer from things he no longer maintains
While preparing this change, I read the git blame on all of the files I
touched. I saw a working lifetime of building this system which we use
every day and love dearly and keep maintained ourselves. I saw commits
from a 14 year range between 2003 to 2017!! I could not be more thankful
for Eelco's work on building large parts of the foundation of nixpkgs
that all of us rely on now.

However, the end date of that range of the files I looked at the blame
on was 2017. I did not see surviving code from any newer date than that.
Looking at the Git logs, Eelco has been working on other things, and
that's totally fine.

However, it means that our maintenance metadata is out of date on a lot
of packages, and *that*'s the reason I am submitting this change. There
are a lot of packages that don't have anyone with their name on them to
be pinged if they need attention, even if they have had recent activity
(although it is never clear if recent activity was just someone fixing
it because ZHF or because the package actually matters to them).
There are a lot of packages with storied history that maybe don't need
to be in the set anymore at all since they have not been touched in
years; or maybe they are simply finished.

Empty maintainer lists should be a sign that we need to figure out who
maintains it or potentially remove it if it has rotted, and allowing the
maintainer list to be empty if it is already not maintained is part of a
healthy repository ecology.

Either way, I would like to have the maintenance metadata not mislead
anyone into sending Eelco emails about packages he doesn't, in practice,
work on anymore. I have not removed his name from everything; there are
some things that he is the upstream for or has worked on more recently,
for instance, like Nix, which I have left alone.
2024-08-21 01:17:45 -07:00
Alyssa Ross
b96f111a71 plasma5Packages.krfb: depend on wayland-scanner
Otherwise, wayland-scanner would be picked up from the wayland in
buildInputs, which isn't cross-friendly and will stop working when we
split wayland-scanner into a separate package.
2024-08-11 16:04:16 +03:00
Sigmanificient
aab1113d4a treewide: normalize maintainers list formatting
grep -rP 'maintainers = \[\];'
2024-07-30 16:26:22 +02:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
K900
a8c851bd92 kdePackages.kdenlive, plasma5Packages.kdenlive: drop glaxnimate from inputs
It's not actually needed as a library, only as a binary, and adding it
leaks duplicate OpenCVs into the closure, which breaks rendering.

Fixes #329747
Fixes #209941
2024-07-27 10:06:50 +03:00
Sigmanificient
2ee703dccb pkgs/applications: remove unused arguments 2024-07-26 11:36:49 +02:00
Sigmanificient
512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +02:00
Tobias Bora
6e5b099e16 kdenlive: minor refactoring 2024-07-04 17:35:42 +03:00
Tobias Bora
cc9be80fec kdenlive: make glaxnimate non-optional 2024-07-04 10:39:22 +02:00
Tobias Bora
4fd86e2bf7 mlt: add glaxnimate support 2024-07-04 10:39:22 +02:00
Linus Heckemann
e5adf0b547 maintainers: drop lheckemann 2024-06-21 15:54:54 +02:00
Samuel Dionne-Riel
0833ea2c18 applications/kde: Remove samueldr as maintainer of mobile gear 2024-06-20 20:42:26 -04: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
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
Sandro
d2768ea8ba
Merge pull request #308448 from r-ryantm/auto-update/corrosion
corrosion: 0.4.8 -> 0.5
2024-06-09 16:01:14 +02:00
Robert Schütz
270cf648af libsForQt5.angelfish: fix build with corrosion 0.5 2024-06-08 22:33:40 -07:00
Sigmanificient
0058552891 pkgs/applications: remove uneeded fetchpatch arguments 2024-05-21 03:12:20 +02:00
Jan Tojnar
1b2ebb8fbb Merge branch 'master' into staging-next 2024-04-28 17:33:27 +02:00
Frederik Rietdijk
5772ac5a75 Removing FRidh as active maintainer of packages
In the past I was very active with Python packaging.
For several years now I was hardly around as maintainer,
so it does not make sense I am listed as a maintainer for
these makes. Looking back, I should have removed myself
as maintainer already much longer ago. Anyway, better late
than never.

It's been a fun ride, and  I do intend to occasionally contribute
to Nixpkgs, but not in the same way it once was.
2024-04-28 12:20:07 +02: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
Sandro Jäckel
94805a3d21
nixos/partition-manager: use qt6 when plasma6 is activated
This also fixes System Settings > Windows Shares complaining about the
wrong QT version under Plasma6.
2024-03-30 14:31:45 +01: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
Doron Behar
aab285e925 cantor: fix build on Hydra by avoiding parallel building 2024-03-12 17:01:18 +02:00
K900
416c9181cd gwenview: fix build with versioned kImageAnnotator 2024-02-28 18:49:12 +03:00
Guillaume Girol
905c33738b
Merge pull request #289121 from Thra11/arianna-kitemmodels
arianna: add missing runtime dependency
2024-02-27 21:40:55 +01:00
Thomas Gerbet
3bf7b3d10e
Merge pull request #286546 from Sigmanificient/kcachegrind-fix
kcachegrind: fix graphviz missing at runtime
2024-02-25 12:06:03 +01:00
John Garcia
65f6e5e665 libsForQt5.konsole: add missing meta.mainProgram 2024-02-20 12:13:21 +00:00
Robert Schütz
cbff16ce42
Merge pull request #288094 from dotlambda/itinerary-dependencies
plasma5Packages.itinerary: add missing dependency
2024-02-17 16:47:25 +00:00
Tom Hall
fb19dea01f arianna: add missing runtime dependency 2024-02-15 19:06:58 +00:00
K900
60a6ca4db2 kde/gear: 23.08.4 -> 23.08.5 2024-02-15 17:28:41 +03:00
Robert Schütz
4c863e62e9 plasma5Packages.itinerary: add missing dependency 2024-02-11 09:36:08 -08:00
Sigmanificient
67d1d801b0 kcachegrind: fix graphviz missing at runtime 2024-02-05 19:29:39 +01:00
Sandro
121b537238
Merge pull request #273263 from syvb/fix-audiotube-kpurpose 2024-02-05 16:27:42 +01:00