Commit Graph

22 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
Francesco Zanini
309e5ad624 ripgrep-all: avoid producing debug symbols
Upstream enabled `debug = true` for the release profiles, breaking the
`wrapProgram` logic we have in the build.

Additionally, we don't want to have debug symbols produced by default.
2024-10-23 21:45:31 +02: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
Adam Jedrzejewski
21e27095c8 ripgrep-all: add missing dependency 2024-02-23 14:53:05 +01:00
Robert Schütz
41077f6bc6 ripgrep-all: 1.0.0-alpha.5 -> 0.10.6
Diff: https://github.com/phiresky/ripgrep-all/compare/v1.0.0-alpha.5...v0.10.6

Changelog: https://github.com/phiresky/ripgrep-all/blob/v0.10.6/CHANGELOG.md
2024-01-16 20:42:56 -08:00
Pablo Ovelleiro Corral
97c8df0fbc
ripgrep-all: 0.9.6 -> 1.0.0-alpha.5
Fixes #250306
2023-10-30 15:12:56 +01:00
Robert Schütz
e7761fa511 ripgrep-all: use tesseract3 2023-03-02 21:11:01 -08:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
legendofmiracles
56b1f085a1
ripgrep-all: add meta.mainProgram 2021-04-27 18:53:33 +02:00
Maximilian Bosch
971940c996
ripgrep-all: use ffmpeg 4
See also #120705. `ffmpeg` is only used to search for metadata and
chapters in video files (such as `.mkv`, `.mp4` etc.). Confirmed that
with both `ffmpeg` versions the same result is provided.
2021-04-27 09:30:46 +02: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
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Doron Behar
01d4e2fe33 treewide: use ffmpeg_3 explicitly if not wanted otherwise
After making `ffmpeg` point to the latest `ffmpeg_4`, all packages that
used `ffmpeg` without requiring a specific version now use ffmpeg_3
explicitly so they shouldn't change.
2020-06-12 11:55:31 -07:00
Maximilian Bosch
f0bc522148
ripgrep-all: 0.9.5 -> 0.9.6
https://github.com/phiresky/ripgrep-all/releases/tag/v0.9.6
2020-05-19 13:16:18 +02:00
Mario Rodas
2011c203c5
ripgrep-all: 0.9.3 -> 0.9.5 (#84714) 2020-04-08 18:00:06 +02:00
Benjamin Hipple
edee7deaf4 ripgrep-all: upgrade cargo fetcher implementation and cargoSha256
Infra upgrade as part of #79975; no functional change expected.
2020-02-15 15:46:56 -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
Maximilian Bosch
9842c4b107
treewide: update which packages I'm currently maintaining
Idea shamelessly stolen from 4e60b0efae.

I realized that I don't really know anymore where I'm listed as maintainer and what
I'm actually (co)-maintaining which means that I can't proactively take
care of packages I officially maintain.

As I don't have the time, energy and motivation to take care of stuff I
was interested in 1 or 2 years ago (or packaged for someone else in the
past), I decided that I make this explicit by removing myself from several
packages and adding myself in some other stuff I'm now interested in.

I've seen it several times now that people remove themselves from a
package without removing the package if it's unmaintained after that
which is why I figured that it's fine in my case as the affected pkgs
are rather low-prio and were pretty easy to maintain.
2019-12-26 15:27:47 +01:00
Emmanuel Rosa
c3c072ad17 ripgrep-all: add checkInstall test
This change adds a checkInstallPhase which runs a couple of queries
to smoke-test the ripgrep-all adapters. The queries are intended to
ensure that the dependencies needed by the adapters are included in
the package's dependencies.
2019-12-18 21:17:59 +07:00
Emmanuel Rosa
727b097c78 ripgrep-all: add missing dependencies
This change adds additional dependencies so that the program's full
functionality is available by simply installing this package.

Closes #75735
2019-12-18 17:48:38 +07:00
Mario Rodas
549303466e
ripgrep-all: 0.9.2 -> 0.9.3 2019-10-28 03:00:00 -05:00
Francesco Zanini
1b1f9f95dd ripgrep-all: init at 0.9.2 2019-08-04 09:18:47 +02:00