Commit Graph

43 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
aleksana
1a89942243 treewide: sha256 -> hash attribute for gitlab.com fetchers 2024-07-13 22:28:37 +08:00
Lily Ballard
15196e1730 treewide: remove lilyball 2024-07-02 15:32:33 -04:00
Mario Rodas
2becf6e837 maintainers: drop marsam 2024-04-24 04:20:00 +00:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
MaxHearnden
7ca12d5f71 ffsend: Fix segmentation fault
This applies a patch updating prettytable-rs, the other three patches
are needed to merge the final patch cleanly
2023-06-06 12:24:26 +01:00
figsoda
38401aed72 treewide: remove file-wide with rustPlatform;s 2023-04-17 16:33:08 -04:00
Mario Rodas
48134305bb ffsend: add marsam to maintainers 2022-06-24 04:20:00 +00:00
Mario Rodas
278934a4c8 ffsend: 0.2.74 -> 0.2.76 2022-06-24 04:20:00 +00:00
FliegendeWurst
1439b379ff ffsend: 0.2.72 -> 0.2.74 2021-10-27 18:34:57 +02:00
R. RyanTM
3f8e2f06d2 ffsend: 0.2.71 -> 0.2.72 2021-05-09 14:55:30 +00:00
Andrey Kuznetsov
9b2ec3bc72
ffsend: fix build on darwin 2021-04-28 12:10:43 +03:00
Robert Schütz
56e173303d ffsend: 0.2.68 -> 0.2.71 2021-04-23 12:50:07 +02:00
Alyssa Ross
730a9a04fa
stdenv.isBSD: reinit
This was removed in e29b0da9c7, because
it was felt it was ambiguous whether isBSD should remove Darwin.

I think it should be reintroduced.  Packages sometimes have their own
concepts of "is BSD" e.g. Lua, and these almost never include Darwin,
so let's keep Darwin excluded.

Without a way to say "is this BSD", one has to list all flavours of
BSD seperately, even though fundamentally they're still extremely
similar.  I don't want to have to write the following!

    stdenv.isFreeBSD || stdenv.isNetBSD || stdenv.isOpenBSD || stdenv.isDragonFlyBSD

Additionally, we've had stdenv.hostPlatform.isBSD this whole time, and
it hasn't hurt anything.
2021-04-18 20:12:09 +00:00
Ben Siraphob
76f93cc731 pkgs/tools: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08: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
R. RyanTM
ddefc77782 ffsend: 0.2.65 -> 0.2.68 2020-10-31 21:38:01 +00:00
R. RyanTM
8aeb5cb000 ffsend: 0.2.64 -> 0.2.65 2020-07-13 01:14:36 +00:00
Lily Ballard
2915242583 ffsend: don't require openssl on darwin
The current version of ffsend no longer requires `openssl` on macOS.
2020-05-20 16:17:59 -07:00
Oleksii Filonenko
c34d4bbe3c ffsend: 0.2.61 -> 0.2.64 2020-05-18 18:11:42 -07:00
Oleksii Filonenko
48ce423f64 ffsend: 0.2.59 -> 0.2.61 2020-05-12 08:03:25 +00:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Lily Ballard
06b05163f4 ffsend: 0.2.58 -> 0.2.59 2020-03-31 16:55:23 -07:00
Benjamin Hipple
c51bc2b9fc ffsend: upgrade cargo fetcher and cargoSha256
Infra upgrade as part of #79975; no functional change expected.
2020-02-27 21:50:06 -05:00
Benjamin Hipple
eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Lily Ballard
8e1c6841af ffsend: 0.2.57 -> 0.2.58 2019-12-29 16:59:36 -08:00
Lily Ballard
e15bfe166f ffsend: 0.2.56 -> 0.2.57 2019-12-05 22:55:16 -08:00
Eduardo Quiros
8bdf0b99e3 ffsend: 0.2.55 -> 0.2.56 2019-12-03 20:12:51 -06:00
Lily Ballard
67d3d98c83 ffsend: 0.2.54 -> 0.2.55 2019-10-30 14:45:52 -07:00
Lily Ballard
a8b27f789a ffsend: 0.2.52 -> 0.2.54 2019-10-26 21:14:45 -07:00
Lily Ballard
9ddfe6f678 ffsend: 0.2.51 -> 0.2.52 2019-09-29 16:37:01 -07:00
Lily Ballard
ed620603d4 ffsend: adopt installShellFiles 2019-09-08 15:00:52 -07:00
Lily Ballard
8d084f6f45 ffsend: v0.2.50 -> v0.2.51 2019-08-29 15:09:36 -07:00
Lily Ballard
f44bb0d0c3 ffsend: v0.2.49 -> v0.2.50 2019-08-25 14:41:50 -07:00
Lily Ballard
0171d504b2 ffsend: 0.2.48 -> 0.2.49 2019-07-01 00:36:42 -07:00
Lily Ballard
68be0c72ee ffsend: 0.2.46 -> 0.2.48 2019-06-20 17:02:46 -07:00
Lily Ballard
985c9dd95c ffsend: 0.2.45 -> 0.2.46
Extend the xclip/xsel support to all BSD variants and update the
platforms list to `platforms.unix`.
2019-05-09 20:39:18 -07:00
Lily Ballard
5457c041ea ffsend: 0.2.42 -> 0.2.45 2019-04-21 21:30:35 -07:00
Lily Ballard
da484caf1c ffsend: 0.2.39 -> 0.2.42
https://github.com/timvisee/ffsend/releases/tag/v0.2.42

Add support for `xsel` instead of `xclip` on Linux.
2019-03-25 21:09:42 -07:00
Will Dietz
288d2928cb ffsend: 0.2.38 -> 0.2.39
https://github.com/timvisee/ffsend/releases/tag/v0.2.39
2019-03-24 23:03:35 -05:00
Lily Ballard
59fdbac729 ffsend: 0.2.36 -> 0.2.38
Also add support for xclip on Linux.
2019-03-19 20:59:55 -07:00
Lily Ballard
11cdd00138 ffsend: init at 0.2.36 2019-03-17 18:52:25 -07:00