95 Commits

Author SHA1 Message Date
Eman Resu ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
Martin Weinelt 2fb194308f zstd: remove fetchpatch usage
Welcome to the fetchpatch bootstrap chain due to the Python 3.14 reverse
dependency.
2026-05-30 03:53:02 +02:00
David McFarland 15b2e4e732 zstd: fix cygwin build 2025-12-16 13:58:14 -04:00
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Marcin Serwin eeb6dc0081 maintainers: drop orivej
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2025-11-21 17:56:40 +01:00
Ihar Hrachyshka 56d9cd414d zstd: fix changelog
lib.version (nixpkgs version) creeped in due to wide `lib` scope.

Note: I am working on an automated extinguisher of the pattern, so
leaving the rest of "modernization" out of scope.
2025-09-13 12:11:51 -04:00
Robert Hensing 3bc063ae2e zstd: Include overrides in package tests 2025-08-27 13:11:20 +02:00
sternenseemann 801fad36ce zstd: set meta.pkgConfigModules
I've chosen to use zstd from the pkgs fix point for the pkg-config test
instead of using finalAttrs.finalPackage because this is effectively
also done for all the other tests (they test bindings from the pkgs fix
point which get their zstd from the pkgs fix point).
2025-08-24 13:22:21 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
K900 f42e00d66e Merge remote-tracking branch 'origin/master' into staging-next 2025-04-08 10:29:26 +03:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
K900 b3146d4446 Merge remote-tracking branch 'origin/master' into staging-next 2025-04-07 21:21:10 +03:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Franz Pletz 4769eec881 zstd: 1.5.6 -> 1.5.7 (#383579) 2025-03-18 23:08:09 +01:00
Sergei Trofimovich 759d7fae61 zstd: 1.5.6 -> 1.5.7
Changes: https://github.com/facebook/zstd/releases/tag/v1.5.7
2025-02-20 22:24:33 +00:00
Silvan Mosberger e3491c9e40 bash: Make interactive the default
The status quo of `bash` not being interactive is frustrating for many users,
because trying to use it interactively is just messed up, and
`bashInteractive` is not intuitive and barely discoverable.

This was brought to my (and many others) attention by @stahnma in his
[talk at CfgMgmtCamp 2025](https://cfp.cfgmgmtcamp.org/ghent2025/talk/YUVUTN/),
where he highlighted this as one of the frustrations he ran into when
learning Nix.

Why this is fine:
- No reason for not making interactive the default was given in the original commit (6c6ff6f36f), but probably it was due to the increase in closure size
- The closure size only increases by 6.9MiB (19.5%) today, with the
  added dependency on the store paths for readline and ncurses, which
  are needed on systems in almost all cases anyways
- If somebody really needs to get a more minimal system, they can use
  the newly-introduced `bashNonInteractive` instead now
- Though to apply it consistently, they'll need to do that in an
  overlay like
  ```
  final: prev: {
    bash = self.bashNonInteractive;
  }
  ```

  Or alternatively using the `system.replaceDependencies.replacements`
  NixOS option approach.

While there's also other such `*Interactive` packages that could use the
same treatment, `bash` is a great start.

This was already attempted before in
https://github.com/NixOS/nixpkgs/pull/151227, but was not continued for
unknown reason.

To avoid stdenv becoming bigger, all uses of bash in the (working)
stdenv's are changed to the explicitly non-interactive version here.

This commit will however still cause a mass rebuild for all packages (and reverse deps)
making use of the default bash.
2025-02-05 00:31:46 +01:00
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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.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
Sandro Jäckel d3a139bf97 zstd: set meta.mainProgram 2024-08-19 13:15:46 +02:00
Sergei Trofimovich 4004cd4536 zstd: 1.5.5 -> 1.5.6
Changes: https://github.com/facebook/zstd/releases/tag/v1.5.6
2024-03-27 21:25:03 +00:00
Nick Cao f197cb435d zstd: drop libatomic workaround for riscv 2023-12-16 16:25:45 -05:00
Artturi fbb3ff5e12 Merge pull request #243161 from nh2/more-enableStatic 2023-11-07 03:49:21 +02:00
Niklas Hambüchen ef4c88d1f6 zstd: Add enableStatic. See #61575 2023-10-20 19:59:30 +00:00
figsoda 0f00e2f1cf pkgs/tools/compression: remove dead code 2023-07-25 10:28:26 -04:00
Anders Kaseorg 72e952ef3a zstd: 1.5.4 → 1.5.5
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-04-04 17:25:52 -07:00
github-actions[bot] 29c2637dda Merge staging-next into staging 2023-02-13 12:02:05 +00:00
Robert Scott e186a328e4 zstd: add some key reverse-dependencies to passthru.tests 2023-02-11 00:09:44 +00:00
Sergei Trofimovich 32693f33a2 zstd: 1.5.2 -> 1.5.4
Changes: https://github.com/facebook/zstd/releases/tag/v1.5.4
2023-02-10 08:32:14 +00:00
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Tim Cuthbertson 7584d9fbf8 zstd: fix cross-compilation on darwin 2023-01-19 15:04:40 +11:00
figsoda a211d94291 treewide: remove attrPath from nix-update-script calls
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
2022-12-26 12:39:21 -05:00
Luiz Ribeiro c0fc8f51a2 zstd: Fix build on riscv hosts 2022-07-03 12:47:51 -05:00
R. Ryantm b7c57ee121 zstd: 1.5.1 -> 1.5.2 2022-01-27 14:32:14 -08:00
Sergei Trofimovich 088277aafb zstd: 1.5.0 -> 1.5.1 (#153103)
While at it added trivial updater plumbing.
2022-01-02 17:25:18 -05:00
Pamplemousse 47fd767531 zstd: Fix static build 2021-08-16 17:52:13 -07:00
Vladimír Čunát 76f4182a36 zstd: fixup wrong preInstall order for isDarwin
This regressed in 03e499425 (PR #129873).
2021-07-25 09:45:29 +02:00
Jonathan Ringer 03e499425d zstd: don't build contrib when cross-compiling
Tests and `./gen_html` from contrib need to run
on host architecture. Disable them when doing
cross-compiliation.
2021-07-11 15:44:09 -07:00
Marc Seeger 9889bdb6fb zstd: Add pzstd to compiled binaries 2021-07-09 11:29:19 -07:00
IvarWithoutBones 1194bfcc03 zstd: 1.4.9 -> 1.5.0 2021-05-31 15:47:58 -07:00
Emery Hemingway 9e4a925caf zstd: do not cross-compile tests 2021-04-10 17:10:50 +02:00
Martin Weinelt 4252f1a092 Merge pull request #115625 from LeSuisse/zstd-1.4.9
zstd: 1.4.8 -> 1.4.9
2021-03-20 02:01:29 +01:00
Thomas Gerbet aea3ad0d4d zstd: 1.4.8 -> 1.4.9
Fixes CVE-2021-24032.
2021-03-16 09:33:46 +01:00
John Ericson 51011985ef zstd: Remove no-pthread patch used for building with mcfgthreads
Evidentially upstream has improved their feature detection so we no
longer need this patch.

CC @lhmouse
2021-03-12 16:22:27 +00: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
Jan Tojnar f19eb635b4 Merge branch 'master' into staging-next
https://github.com/NixOS/nixpkgs/commit/b04fc593e7b55fe1f74421b11589f12a339c92e2 seems to have accidentally changed mkDerivation function for dfilemanager and solarus-quest-editor so I have reverted that here.
2021-01-07 13:04:31 +01:00
John Ericson 5c2965145f treewide: Inline more of the static overlay
Picking up where #107238 left off. I think I'll have gotten all the easy
stuff with this.
2021-01-03 21:46:14 +00:00
Mario Rodas 99061cb6ac zstd: 1.4.5 -> 1.4.8
+ https://github.com/facebook/zstd/releases/tag/v1.4.7
+ https://github.com/facebook/zstd/releases/tag/v1.4.8
2020-12-17 04:20:00 +00:00
John Ericson 437dc4c047 zstd: Fix MinGW build 2020-10-28 23:34:51 +00:00
Ben Wolsieffer 6093f9eb6e zstd: fix shebangs when cross-compiling 2020-08-15 08:32:57 +02:00