Commit Graph

26 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
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
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Rick van Schijndel
cd3c25616d treewide: pkgs/tools: mark broken for darwin
All packages that were failing on x86_64-darwin are marked broken.
I'm assuming here that these are also broken on aarch64-darwin.
2022-05-29 10:56:04 +02:00
Felix Buehler
22dffe27f3 pkgs/tools: use pname&version instead of name 2021-11-30 21:11:29 +01:00
Stéphan Kochen
4731287e19 heimdall: fix non-GUI build on darwin 2021-05-18 21:27:32 +02:00
Stéphan Kochen
40c346de46 heimdall-gui: fix darwin build 2021-05-16 14:29:18 -07:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +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
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Mario Rodas
a18e65f6a8
heimdall: fix build on darwin 2020-01-04 04:20:00 -05:00
Peter Simons
52de09ce84 heimdall: fix the GUI front-end's run-time errors 2019-09-05 10:55:19 +02:00
Peter Hoeg
68a4dc82c0 heimdall: add OSX docs too 2017-06-24 13:18:04 +08:00
Peter Hoeg
276adb96fa heimdall: 1.4.1 -> 1.4.2 2017-06-24 12:49:11 +08:00
Peter Simons
6dca78e1ae heimdall: clean up the build expression
- Make sure the front-end-less build does not depend on QT.

- Don't override patchPhase because that will lead to unexpected results for
  people who try to defined a "patches = [...]" attribute.
2017-02-02 15:20:16 +01:00
Peter Simons
e051e88213 heimdall: update to latest git revision
Probably makes no difference because there have been no significant changes.
Anyway, let's live on the bleeding edge.
2017-02-02 15:01:55 +01:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Tuomas Tynkkynen
e0de3b1dc5 treewide: Make explicit that 'dev' output of qt5.qtbase is used 2016-05-19 10:03:31 +02:00
Peter Simons
a211eef81a heimdall: cosmetic 2016-05-07 10:46:52 +02:00
Peter Simons
c083ef0c6d heimdall: update to version 1.4.1-34-g7ebee1e (current Git 'master') 2016-05-07 01:39:48 +02:00
Marius Bakke
c1eec00179 heimdall: 1.4.1 -> 1.4.2pre 2016-01-23 04:08:28 +00:00
Damien Cassou
50ee0f020b Update heimdall to 1.4.1 2015-01-20 07:10:23 +01:00
Mateusz Kowalczyk
7a45996233 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
Mathijs Kwik
636ba8f4ad heimdall: upgrade to 1.4.0 2013-09-04 09:28:59 +02:00
Eelco Dolstra
631ba2a5f0 svn path=/nixpkgs/trunk/; revision=28716 2011-08-21 00:10:12 +00:00