Commit Graph

23 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
Jussi Kuokkanen
ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02:00
Sergei Trofimovich
78081a31e1 grub4dos: mark broken
grub4dos is broken for a while after `binutils` update as:

  > checking whether objcopy works for absolute addresses... no
  > configure: error: GRUB requires a working absolute objcopy; upgrade your binutils

Upstream has an unfixed report in 2017. Let's mark the package broken.
2023-05-06 11:53:23 +01: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
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Nikolay Amiantov
5eeb159838 grub4dos: 0.4.6a-2018-02-20 -> 0.4.6a-2019-05-12 2019-06-04 01:36:27 +03:00
Nikolay Amiantov
4545620336 grub4dos: 0.4.6a-2016-12-24 -> 0.4.6a-2018-02-20 2018-02-25 22:24:09 +03:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Tuomas Tynkkynen
1508945755 treewide: Fix eval-release.nix for aarch64 2017-03-09 03:38:04 +02:00
Nikolay Amiantov
0cfefc7c99 grub4dos: 0.4.6a-2016-11-09 -> 0.4.6a-2016-12-24 2017-01-31 03:26:26 +03:00
Nikolay Amiantov
3223e61e6b grub4dos: 0.4.6a-2016-08-06 -> 0.4.6a-2016-11-09 2016-11-24 01:17:58 +03:00
Robin Gloster
33e1c78ae3 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-08-16 07:54:01 +00:00
Nikolay Amiantov
bdc700c23a grub4dos: 0.4.6a-2016-04-26 -> 0.4.6a-2016-08-06 2016-08-14 22:37:10 +03:00
Robin Gloster
5185bc1773 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-07-15 14:41:01 +00:00
Nikolay Amiantov
4a0ca7d92e grub4dos: enable only on Linux 2016-06-11 03:39:44 +03:00
Robin Gloster
c92bca56f8 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-05-02 22:58:02 +00:00
Nikolay Amiantov
626b1c4101 grub4dos: 0.4.6a-2015-12-31 -> 0.4.6a-2016-04-26 2016-04-30 03:12:34 +03:00
Nikolay Amiantov
938d64f1f3 quote URLs in my packages to ease opening them from urxvt 2016-04-30 03:12:32 +03:00
Robin Gloster
d8d6f0bfcb grub4dos: disable stackprotector hardening 2016-04-05 16:29:55 +00:00
Nikolay Amiantov
9aca5edfdd grub4dos: 0.4.6a -> 0.4.6a-2015-12-31 2016-01-13 21:21:43 +03:00
Nikolay Amiantov
3d6070f0a7 grub4dos: init at 0.4.6a 2015-10-19 03:27:42 +03:00