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"
```
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.
This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
If we override khal with another python version, its dependencies should
also be built with another python version. If we use application rather
than module, python version will be fixed.
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.
* `glibcLocales` (+appropriate locale settings) are needed to fix
locale/language-related errors in the `checkPhase`.
* The `test_editor.test_popup`-testcase appears to break in
their testsuite. I confirmed manually that the functionality works, the
error looks more like a problem related to the mocking-api. Thus I
disabled the test for now.
https://hydra.nixos.org/build/109705657Closes#76989
This isn't pretty but seems to do the job, improvements very welcome :)
An alternative approach (untested) would be buiding man pages separately
and linking them into a unified result. FWIW.
https://github.com/pimutils/khal/releases/tag/v0.10.0
* new dep, click-log
* enable tests (pass!)
Release notes mention 'only dateutil < 2.7 is supported',
which may be a problem as ours is currently 2.8.
There's a history of python-dateutil version particularity
in previous releases (such as 0.9.10 upgrading from),
unsure if should override to older or if it's just a suggestion.
Upgrading icalendar to 4.0.3 broke the pinned dateutil version.
Luckily khal 0.9.10 now works with dateutil 2.7, so we no longer need to
override it. However now one test in khal fails (the string output
changed from icalendar 4.0.2 to 4.0.3)...
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/khal/versions.
These checks were done:
- built on NixOS
- Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/.ikhal-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/ikhal had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/.khal-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9/bin/khal had a zero exit code or showed the expected version
- 0 of 4 passed binary check by having a zero exit code.
- 0 of 4 passed binary check by having the new version present in output.
- found 0.9.9 with grep in /nix/store/wkssgwwqyffwnf7c8p1zi180xjm256il-khal-0.9.9
- directory tree listing: https://gist.github.com/a146a88f248f45c280a17c50a0d46b79
- du listing: https://gist.github.com/72d0555178317dce9c07ab814f13f512
With this patch I remove myself as a maintainer for all packages I
currently maintain.
This is due the fact that I will be basically off the grid from May 2018
until early 2019, as I will be on a trip through north america.
I will revert this patch as soon as I'm back, as I plan to continue
contributing to nixpkgs then.
But as I cannot maintain anything during that time, I'd like to get this
patch merged.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>