Commit Graph

34 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
Randy Eckenrode
f9b7f4ec09
tree-wide: use top-level cctools 2024-07-17 22:36:19 -04:00
Colin
5c9bd5bf82 moreutils: minor packaging improvements
- use `perl.withPackages` instead of manually wrapping.
- plumb the docbook via `DOCBOOKXSL` instead of patching.
- specify `INSTALL_BIN=install` instead of upstream's default `install -s`.
  this lets the user control stripping (via stdenv's `dontStrip` option),
  and notably in a way which is compatible with cross compilation
  (`install -s` is not).
2024-06-01 15:12:01 +00:00
Sergei Trofimovich
a70afee360 moreutils: 0.68 -> 0.69
Changes: https://joeyh.name/code/moreutils/news/version_0.69/
2024-02-26 22:00:23 +00:00
Sergei Trofimovich
a9b2070339 moreutils: 0.67 -> 0.68
Citing changes from https://joeyh.name/code/moreutils/:

    popen: Use pclose, fixing compile warning. Thanks, Mikel Olasagasti Uranga
    vidir: Zero pad line numbers to work better when used with a small tab size such as 2. Thanks, Johan Grande

Co-authored-by: kirillrdy <kirillrdy@gmail.com>
2023-12-01 02:23:59 +00:00
Shawn8901
133fa5f867 treewide: remove global with lib; in pkgs/tools 2023-01-24 17:41:44 +01:00
Sergei Trofimovich
58a59bc5fa moreutils: fix depends for strictDeps = true
Without the change `config.strictDepsByDefault = true` fails build as:

    bash: line 1: pod2man: command not found
2022-06-21 19:19:35 +01:00
R. Ryantm
8a024a8333 moreutils: 0.66 -> 0.67 2021-12-25 18:26:47 +00:00
R. Ryantm
0ef5845ef1 moreutils: 0.65 -> 0.66 2021-12-09 11:22:49 +00:00
github-actions[bot]
abe7db36a4
Merge staging-next into staging 2021-02-20 00:36:40 +00:00
Ben Siraphob
223f25cf4a treewide: add targetPrefix to hardcoded references to CC=cc 2021-02-20 01:01:46 +07:00
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
ilian
1ddc730412 moreutils: 0.63 -> 0.65 2021-01-25 12:44:20 +01:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Merijn Broeren
133103d709
treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01: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
Bjørn Forsman
a90062d46f moreutils: unbreak 'ts -r'
Fix this:

  $ ts -r
  Can't locate Date/Parse.pm in @INC [...]
2019-02-01 11:32:46 +01:00
Pascal Wittmann
3f541d1e7f
moreutils: 0.62 -> 0.63 2019-01-27 21:16:22 +01:00
volth
bb9557eb7c lib.makePerlPath -> perlPackages.makePerlPath 2018-12-15 03:50:31 +00:00
Pascal Wittmann
77d5aff75e
moreutils: add license
see issue #43716
2018-08-06 12:42:49 +02:00
John Ericson
b8e8265db0 moreutils: Fix eval
Was broken in 561b9ca8ac.
2018-01-31 17:20:09 -05:00
Pascal Wittmann
561b9ca8ac
moreutils: 0.61 -> 0.62 2018-01-31 21:56:01 +01:00
Domen Kožar
f237eeb6a8
moreutils: address comment on 14a320ace8 2017-06-21 13:44:17 +02:00
Pascal Wittmann
065bb61330
moreutils: fix darwin build 2017-06-20 22:39:51 +02:00
Domen Kožar
14a320ace8
moreutils: fix build on darwin 2017-06-20 16:42:49 +02:00
Pascal Wittmann
aee5fa2f48
moreutils: 0.59 -> 0.61 2017-05-28 20:00:07 +02:00
koral
179f5e9500 moreutils: 0.58 -> 0.59 2016-06-05 17:14:38 +02:00
Bjørn Forsman
977cd5de36 moreutils: add meta.platforms (= all) 2016-05-09 20:34:45 +02:00
Théophane Hufschmitt
93856f36a2 moreutils : 0.57 -> 0.58 2016-03-17 08:54:36 +01:00
Bjørn Forsman
72d7e4048c moreutils: 0.55 -> 0.57
(Implicitly fixes build, since 0.55 source has disappeared.)

Also add needed "docbook_xml_dtd_44" dependency for the new version.
2015-07-29 15:46:15 +02:00
Pascal Wittmann
f99d5cf2fc Fixed some descriptions 2015-04-28 10:55:20 +02:00
koral
3544c17df5 moreutils: 0.54 -> 0.55 2015-01-28 22:30:02 +01:00
koral
421b3ebe25 New package: moreutils-0.54 2014-12-14 12:49:07 +01:00