Commit Graph

19 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
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
realweezerfan93
ecfff018eb
masscan: add patch to fix resume functionality (#219905) 2023-03-07 21:34:23 +01:00
Sebastián Mancilla
53fa9753b7 masscan: fix build on darwin 2021-11-19 16:57:28 -03:00
Peter Hoeg
11175a4c8b masscan: enable selftest and minor cleanups 2021-09-29 15:36:13 +08:00
Ben Siraphob
223f25cf4a treewide: add targetPrefix to hardcoded references to CC=cc 2021-02-20 01:01:46 +07:00
Fabian Affolter
7b54fccc3d masscan: switch to installManPage 2021-02-01 22:35:56 +01:00
Fabian Affolter
326a6cd376 masscan: 1.3.1 -> 1.3.2 2021-02-01 22:14:53 +01:00
Fabian Affolter
7072a7efd8 masscan: add changelog to meta and update license 2021-01-27 08:22:20 +01:00
Fabian Affolter
7055f4b42c masscan: 1.3.0 -> 1.3.1 2021-01-27 08:19:51 +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
Fabian Affolter
6db65fa554 masscan: 1.0.5 -> 1.3.0 2021-01-09 15:05:54 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
7b8fb5c06c treewide: remove redundant quotes 2019-09-08 23:38:31 +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
rnhmjoj
efef4acc7e
masscan: 1.0.4 -> 1.0.5 2018-09-04 00:25:23 +02:00
Daiderd Jordan
38323015e2
masscan: fix build 2018-03-21 21:50:56 +01:00
rnhmjoj
de1e0ee43f
masscan: 2017-02-04 -> 1.0.4 2017-11-05 18:22:17 +01:00
rnhmjoj
2e1ccaa319
masscan: init at 2017-02-04 2017-04-01 19:05:10 +02:00