Commit Graph

242 Commits

Author SHA1 Message Date
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
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12: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
Martin Joerg
7abe9d1161 tahoe-lafs: use Python 3.11
Tahoe-LAFS unstable-2021-07-09 is incompatible with Python 3.12, and uses eliot in a way incompatible after version 1.14.0.
These versions should be unpinned, when updating Tahoe-LAFS to a more recent version.lafs
2024-07-14 09:54:25 +00: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
Weijia Wang
58b5b2748f treewide: fix version in changelog 2024-04-21 19:33:05 +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
Felix Buehler
63f5f08857 python311Packages.zope-*: rename from zope_* 2024-01-06 21:04:16 +01:00
Doron Behar
8ace65ff3d
treewide: use finalAttrs in all packages I maintain (#255902)
* 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
2023-09-21 11:31:17 +03:00
figsoda
251d2cbfc2 pkgs/tools/networking: remove dead code 2023-07-25 11:36:57 -04:00
Weijia Wang
7fb3d2a001 amule: migrate to wxGTK32 2023-03-14 12:00:30 +02:00
Weijia Wang
218c4c526e
Merge pull request #212002 from mothsART/feature/replace_http_by_https
treewide: replace http by https when https is a permanent redirection
2023-01-22 03:26:02 +01:00
Ferry Jérémie
65d7e87fdb treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Weijia Wang
07cd65bea2 treewide: drop wxGTK30-gtk2 2022-12-03 03:28:32 +01:00
Juanpe Bolívar
8c35bc9e14
amuled: add option to only build web, add top-level amule-web (#176775) 2022-09-04 14:39:18 +02:00
Martin Weinelt
4af35d92a0
python3Packages.sphinx-rtd-theme: rename from sphinx_rtd_theme 2022-08-03 18:39:37 +02:00
Malo Bourgon
9590fedbf9 amule,amule-gui: mark as broken on Darwin 2022-06-16 19:20:03 -07:00
Sandro Jäckel
3ca93302d4
tahoe-lafs: update meta.platforms, disable outdated test 2022-06-04 07:36:43 +02:00
Martin Weinelt
272430c823
treewide: migrate python packages to optional-dependencies
This follows the term used by PEP 621.
2022-05-22 16:31:53 +02:00
Robert Schütz
a2675e7e29 python3Packages.twisted: use extras-require 2022-05-08 20:32:14 +00:00
Winter
69e6612305 {jesec-,}rtorrent: don't use package sets 2022-04-21 19:26:44 -04:00
R. Ryantm
3ae4ffe6f6 gtkgnutella: 1.2.1 -> 1.2.2 2022-03-01 11:50:56 +00:00
Felix Buehler
9a5767cd5c amuleGui,amuleDaemon: remove appendToName to have a consistent package name for repology 2022-02-21 19:07:47 +01:00
QuantMint
cf42c4d33d amule: use gtk3 2021-12-28 23:13:41 +01:00
Sandro Jäckel
cbfc50722f
maintainers: drop phreedom 2021-12-19 07:30:50 +01:00
Winter
e1486feead maintainers: winterqt -> winter 2021-11-28 20:29:24 -05:00
AndersonTorres
aa2d3c77a5 rakshasa.rtorrent: 0.9.8 -> 0.9.8+date=2021-08-07 2021-10-21 19:31:52 -03:00
AndersonTorres
87cb00aaef rakshasa.libtorrent: 0.13.8 -> 0.13.8+date=2021-08-07 2021-10-21 19:31:52 -03:00
AndersonTorres
3199dc10b7 rakshasa-rtorrent: create subtree
RTorrent uses a companion library, libtorrent, and they should be synchronized
along the releases. They act like a small package set. Therefore it is a good
idea to treat them the same way in Nixpkgs code.

This commit should not change much of the things, because no code besides
rtorrent uses libtorrent.

(Yes, this the same message from jesec-rtorrent commit.)
2021-10-21 19:31:52 -03:00
AndersonTorres
335dbeb95c jesec-rtorrent.rtorrent: 0.9.8-r14 -> 0.9.8-r15 2021-10-21 19:31:51 -03:00
AndersonTorres
24414aeca8 jesec-rtorrent.libtorrent: 0.13.8-r2 -> 0.13.8-r3 2021-10-21 19:31:51 -03:00
AndersonTorres
07e7d46e0c jesec-rtorrent: create subtree
RTorrent uses a companion library, libtorrent, and they should be synchronized
along the releases. They act like a small package set. Therefore it is a good
idea to treat them the same way in Nixpkgs code.

This commit should not change much of the things, because no code besides
rtorrent uses libtorrent.

(Yes, this the same message from rakshasa-rtorrent commit.)
2021-10-21 19:31:51 -03:00
Sandro
8d9aeada6d
Merge pull request #142317 from trofi/parallel-libtorrent 2021-10-20 11:43:14 +02:00
Sergei Trofimovich
7a34492ea4 rtorrent: enable paralell building
On 16-core machine build speeds up from 90s to 19s (~4.7x).
2021-10-20 09:14:19 +01:00
Sergei Trofimovich
9e510d0ab1 libtorrent: enable paralell building
On 16-core machine build speeds up from 81s to 16s (~5x).
2021-10-20 09:13:03 +01:00
Sandro Jäckel
c052a6d83e
azureus: drop 2021-08-02 13:28:38 +02:00
Sandro Jäckel
add631d16f
tahoe-lafs: cleanup 2021-08-02 10:58:44 +02:00
Aaron Janse
7c312a6cf9 tahoe-lafs: 1.13.0 -> 2021-07-09 2021-08-01 01:12:36 -07:00
R. RyanTM
18c2460b70 gtkgnutella: 1.2.0 -> 1.2.1 2021-07-19 15:57:33 +03:00
Winter
09674732ee rtorrent-jesec: 0.9.8-r13 -> 0.9.8-r14 2021-06-03 20:36:20 -04:00
Winter
9e95d55c5b libtorrent-jesec: 0.13.8-r1 -> 0.13.8-r2 2021-06-03 20:36:20 -04:00
Victor Roest
83a8517e5a
rtorrent-jesec: 0.9.8-r10 -> 0.9.8-r13 2021-05-12 21:57:32 +00:00
Robert Schütz
808d88971a
Merge pull request #121058 from winterqt/init-jesec-rtorrent
rtorrent-jesec: init at 0.9.8-r11
2021-05-12 20:42:32 +02:00
Winter
0c6b4f2c75 rtorrent-jesec: init at 0.9.8-r11 2021-05-12 13:43:30 -04:00
Winter
ce6d077290 libtorrent-jesec: init at 0.13.8-r1 2021-05-12 13:43:30 -04:00
Eduardo Sánchez Muñoz
1a8cf34ce4 amule: unbreak (except daemon), unstable-20201006 -> 2.3.3, use cmake 2021-04-10 17:20:29 +02:00
github-actions[bot]
f5bb0053a6
Merge staging-next into staging 2021-03-02 18:17:42 +00:00
Sandro Jäckel
4bc50d5539
amule: mark broken 2021-03-01 18:02:08 +01:00
Sandro Jäckel
e7dd8edf7e
amule: remove unused inputs, cleanup 2021-03-01 12:28:01 +01:00