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
R. Ryantm
0f14ad0731 android-file-transfer: 4.2 -> 4.3 2023-12-13 03:54:15 +00:00
Dmitry Kalinkin
e0532475bc
treewide: remove darwin-only manual wrapQtApp invocations 2021-09-28 10:29:46 -04:00
midchildan
30102e0af5
android-file-transfer: add darwin build
Also apply wrapQtApp.
2021-04-20 00:51:56 +09:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Ben Siraphob
d6aeae8f90 pkgs/tools: pkgconfig -> pkg-config (2) 2021-01-17 23:27:27 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Dominik Xaver Hörl
8791614955 android-file-transfer: clarify that license is LGPL-2.1+ 2020-12-30 22:02:27 +01:00
Dominik Xaver Hörl
a2cf6f7c37 android-file-transfer: 4.1 -> 4.2 2020-12-30 10:32:52 +01:00
Dominik Xaver Hörl
6040a63f2e android-file-transfer: 4.0 -> 4.1 2020-12-14 09:32:03 +01:00
Dominik Xaver Hörl
1c682556bb android-file-transfer: 3.9 -> 4.0 2020-11-16 07:57:59 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Dominik Xaver Hörl
064ddec598 android-file-transfer: fix building with qt
Use mkDerivation has instead of stdenv.mkDerivation (see #54525).
2019-07-31 18:47:47 +02:00
Vladyslav M
f7b41ceef6
android-file-transfer: 3.8 -> 3.9 2019-06-11 19:46:16 +03:00
Dominik Xaver Hörl
9c46f16eac android-file-transfer: fix hash of version 3.8 2019-05-19 00:19:36 +02:00
Vladyslav M
8857abb3b6
android-file-transfer: 3.7 -> 3.8 2019-05-18 20:18:25 +03:00
R. RyanTM
92b16eef4d android-file-transfer: 3.6 -> 3.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/android-file-transfer/versions
2018-11-19 18:38:58 -08:00
Dominik Xaver Hörl
23e66b362d android-file-transfer: 3.5 -> 3.6 2018-11-10 11:27:28 +01:00
Vladyslav Mykhailichenko
1f2babe59f android-file-transfer: 3.4 -> 3.5 2018-09-12 14:47:45 +03:00
Dominik Xaver Hörl
6613fea80e android-file-transfer: init at 3.4 2018-07-27 20:20:41 -07:00