Commit Graph

41 Commits

Author SHA1 Message Date
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
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
R. Ryantm
364a1634b0 far2l: 2.6.2 -> 2.6.3 2024-07-26 12:18:26 +00:00
R. Ryantm
696f0b6228 far2l: 2.6.1 -> 2.6.2 2024-07-16 13:58:43 +00:00
R. Ryantm
eee3a882e2 far2l: 2.6.0 -> 2.6.1 2024-04-14 00:54:23 +00:00
R. Ryantm
fd06200ae6 far2l: 2.5.3 -> 2.6.0 2024-02-19 23:25:49 +00:00
snaar
5b2eefcc03 far2l: 2.4.1 -> 2.5.3
seems to address core dump that started to happen on 23.11;
patch for python installation script no longer needed, so automatic updates should be unblocked now
2023-12-30 11:34:35 -05:00
Weijia Wang
1353282652 far2l: remove libSystem hack 2023-05-23 21:03:17 +03:00
Weijia Wang
e7c5b43452 far2l: 2.4.0 -> 2.4.1 2022-10-11 09:05:38 +02:00
Emery Hemingway
b5526585c2 treewide: inject xdg-open into wrappers as $PATH suffix
The xdg-open utility is only ever a runtime dependency and its
dependents only expect that it accept a URI as a command line
argument and do something with it that the user would expect.
For such as a trivial relationship it should be possible for
users to override xdg-open with something else in their PATH.
2022-08-19 13:11:27 -05:00
ajs124
a0718341e6 maintainers: remove volth
github account deleted
2022-06-29 00:52:12 +02:00
Nikolay Korotkiy
b375c24322
far2l: 2020-12-30 → 2.4.0, enable on darwin 2022-01-14 23:21:31 +03:00
Artturin
b4fab0a98b treewide: remove fmt from buildInputs where spdlog is used
spdlog_1 has fmt_8 in propagatedBuildInputs and having fmt which points
to fmt_7 in buildInputs makes the builds use wrong fmt
2021-11-07 22:05:08 +02:00
Sandro Jäckel
251eb0889e
far2l: remove unused input 2021-02-18 16:57:42 +01:00
Serge Baltic
ed908d81f1
far2l: 2019-12-14 -> 2020-12-30 (#108750) 2021-02-10 14:29:32 +01:00
Ben Siraphob
a6ac3eedbd treewide: xdg_utils -> xdg-utils 2021-02-01 15:05:09 +07:00
Ben Siraphob
5d566c43b4 pkgs/applications: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
Ben Siraphob
108bdac3d9 pkgs/applications: 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
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Maximilian Bosch
401e07d419
Merge pull request #84551 from gnprice/pr-stripDebugList
treewide: Fix types of stripDebugList attrs (and fix doc)
2020-04-14 15:54:52 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Greg Price
7547cf9dfc treewide: Fix up stripDebugList attrs to be lists.
The documentation says this should be a list, and it already is in
about half the expressions that set it.

The difference doesn't matter at present, because these values are all
space-free literals.  But it will in a future with __structuredAttrs .

(The similar attr stripAllList has no users in the nixpkgs tree, so
there's nothing to do to fix any of those up.)
2020-04-06 21:26:52 -07:00
volth
f1541d185d far2l: fix .desktop file 2020-02-10 20:40:46 +01:00
volth
047095f89f far2l: 2018-07-19 -> 2019-12-14 2020-02-10 20:40:46 +01:00
volth
f06e6fbae2
far2l: fix bug on darwin (https://github.com/elfmz/far2l/issues/416) 2018-11-08 21:33:10 +00:00
volth
c04fb0a9c5 far2l: 2018-02-27 -> 2018-07-19 2018-07-21 17:14:49 +00:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
volth
a3b406c0aa far2l: 2017-10-08 -> 2018-02-27 2018-02-27 20:50:57 +00:00
John Doe
6c3731cead far2l: unstable-2017-09-30 -> unstable-2017-10-08 2017-12-07 04:08:45 +00:00
volth
a67bcf91d9 far2l: unstable-2017-09-25 -> unstable-2017-09-30 2017-10-01 02:46:25 +00:00
volth
b200a3417b far2l: support darwin 2017-09-26 22:28:51 +00:00
volth
bfaf508f4f far2l: unstable-2017-07-13 -> unstable-2017-09-25 2017-09-26 14:19:36 +00:00
Frederik Rietdijk
66740b2b19 Merge pull request #28238 from volth/far2l-2017-07-13
far2l: unstable-2017-05-09 -> unstable-2017-07-13
2017-08-13 22:00:35 +02:00
Volth
d9854884fa far2l: add nix syntax highlighting 2017-08-13 15:10:04 +00:00
Volth
7d50d5e304 far2l: 2017-05-09 -> 2017-07-13 2017-08-13 15:10:04 +00:00
mimadrid
09e0cc7cc7
Update homepage attributes: http -> https
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated
https://repology.org/repository/nix_stable/problems
2017-08-03 11:56:15 +02:00
Volth
e905cf95bb far2l: VT: support 'keypad' switching (fix https://github.com/elfmz/far2l/issues/273) 2017-05-09 15:20:54 +00:00
Volth
c780d1a157 far2l: no need to fix xterm's path, it is used only when xterm is on $PATH 2017-05-04 22:34:11 +00:00
Volth
42e179667e far2l: add .desktop file 2017-05-02 11:35:34 +00:00
Volth
f646d16064 far2l: init at 2.1 2017-03-21 15:23:38 +00:00