Commit Graph

28 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
Michael Bishop
702ae3e748 blockbook: 0.3.6 -> 0.4.0 2024-08-29 14:22:16 -03:00
Paul Meyer
b2f0e7301e treewide: remove buildFlags use in buildGoModule
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-04-15 07:39:04 +02:00
Jussi Kuokkanen
82b45bf454 treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Aaron Jheng
7735659333
treewide: use sri hash (#256481) 2023-09-21 16:23:40 +02:00
zowoq
c38c0b8daf blockbook: update vendorSha256 2022-01-31 06:31:22 +10:00
Pavol Rusnak
31cf0a3913
blockbook: use rocksdb_6_23 2021-11-14 00:36:54 +01:00
Pavol Rusnak
434676aa05
blockbook: 0.3.4 -> 0.3.6 2021-11-14 00:36:54 +01:00
zowoq
13ea123c74 treewide: buildFlagsArray -> ldflags 2021-08-26 21:35:06 +10:00
Pavol Rusnak
35dcb0fe16
blockbook: mark as broken
Co-authored-by: 1000101 <b1000101@pm.me>
2021-05-17 17:26:33 +02:00
Léo Gaspard
4105f83082 blockbook: add link to nixos test 2021-05-08 21:41:47 +02:00
Ben Siraphob
872973d7d1 pkgs/servers: stdenv.lib -> lib 2021-01-15 14:24:03 +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
zowoq
0052523a18 maintainers: 1000101 -> _1000101 2020-08-18 07:59:48 +10:00
zowoq
cea7cd902e buildGoModule packages: set doCheck = false 2020-08-10 16:02:30 +10:00
Colin L Rice
298c6a7df8 blockbook: use vend to simplify package 2020-07-29 19:07:59 -04:00
Pavol Rusnak
f03eb5fed6
blockbook: fix build on aarch64-linux 2020-07-21 22:24:53 +02:00
1000101
d37f1f8095 blockbook: add static files necessary for module 2020-06-23 13:10:28 +02:00
Marek Mahut
886dacab6d
blockbook: fix commit
Co-authored-by: 1000101 <b1000101@pm.me>
2020-06-15 13:56:54 +02:00
R. RyanTM
1356bc3d36 blockbook: 0.3.3 -> 0.3.4 2020-06-14 10:27:47 +00:00
Colin L Rice
d6162dab50
go-modules: Update files to use vendorSha256 2020-05-14 07:22:21 +01:00
1000101
00b904305c blockbook: Remove aarch64 from platforms 2020-05-12 15:57:30 +02:00
1000101
cdb4c08d98 blockbook: 0.3.2 -> 0.3.3 2020-05-11 21:46:26 +02:00
zowoq
05683aceae blockbook: use subPackages 2020-04-27 21:06:12 +10:00
Marek Mahut
bb660dd019 blockbook: 0.3.1 -> 0.3.2 2020-03-10 15:22:37 +01:00
Robert Scott
f60b221629 blockbook: increase ulimit -n on darwin for packr execution
macos default can cause build failures due to too many open files
2019-07-20 01:24:18 +01:00
Marek Mahut
9c0915e88e blockbook: init at 0.3.1 2019-07-10 10:23:37 +02:00