Commit Graph

20 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
Sigmanificient
6dd44107ac treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
Robert Schütz
618c163729 apache-airflow: mark insecure 2024-02-07 13:51:19 -08:00
Robert Schütz
761ad75122 apache-airflow: fix build 2024-02-06 14:45:18 -08:00
Sandro Jäckel
653837881e
treewide: replace lib/${python.libPrefix}/site-packages with its shorthand ${python.sitePackages}
which should be always preferred
2024-01-30 19:56:57 +01:00
Martin Weinelt
ba3412d88a
treewide: use sqlalchemy_1_4 instead of individual overrides
As long as sqlalchemy 1.4 is still maintained we should rather maintain
one derivation well, instead of many overrides barely.
2024-01-03 03:13:26 +01:00
Peder Bergebakken Sundt
f41aba3739 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'`
2023-12-01 06:11:20 +01:00
Robert Scott
8f5fa25788 apache-airflow: 2.7.1 -> 2.7.3, fix build
overriding ever more python packages to placate airflow
2023-11-21 23:07:37 +00:00
R. Ryantm
86e452d213 apache-airflow: 2.7.0 -> 2.7.1 2023-09-15 16:34:18 +00:00
Yueh-Shun Li
138565e8df apache-airflow: fix passthru overriding
Keep the `passthru` attributes from previousAttrs
while adding new attributes.

Co-authored-by: Graham Bennett <gbpdt@users.noreply.github.com>
2023-09-07 23:07:42 +02:00
Robert Schütz
a75694493b apache-airflow: use fetchYarnDeps 2023-09-05 20:31:16 -07:00
Robert Scott
9d98e4cdc1 apache-airflow: 2.6.3 -> 2.7.0 2023-08-28 22:24:38 +01:00
Robert Scott
d81e8ba58d apache-airflow: 2.6.2 -> 2.6.3 2023-08-28 22:10:03 +01:00
Robert Scott
4261569412 apache-airflow: fixes to update scripts
adapt to package's new location
2023-08-28 22:10:03 +01:00
Vladimír Čunát
9249f60087
treewide: fixup the embedded sqlalchemy
I got tired of doing this one commit per package.
2023-07-21 17:03:19 +02:00
R. Ryantm
8e3d11f088 apache-airflow: 2.6.0 -> 2.6.2 2023-06-25 08:53:19 +00:00
Robert Scott
08126bf314 apache-airflow: remove from main pythonPackages
now exists solely as an application because its version demands
can't be met by the main pythonPackages. however, exposes its
modified python package set through passthru.pythonPackages which
can may be used by occasional external scripts etc. which need to
import airflow modules
2023-06-05 19:08:52 +01:00
Graham Bennett
48a0434ae7 python3Packages.apache-airflow: 2.5.1 -> 2.6.0 2023-06-04 13:55:59 +01:00