Commit Graph

22 Commits

Author SHA1 Message Date
Aliaksandr
a863496453 resholve: move python27 into its own file 2026-05-31 15:14:58 +03:00
Travis A. Everett
1641b0188d various: switch resholve + rec packages to finalAttrs
These likely would have been switched long ago by various automated
PRs if not for lack of support in resholve.mkDerivation.
2026-05-15 19:46:05 -05:00
Travis A. Everett
62e9404388 resholve: fix finalAttrs compatibility 2026-05-15 19:46:05 -05:00
nixpkgs-ci[bot]
0bf9c97a6d Merge staging-next into staging 2025-12-13 00:18:26 +00:00
Thiago Kenji Okada
3e892ed367 nixos-rebuild: remove 2025-12-03 22:41:16 +00:00
Travis A. Everett
2662c1b538 resholve: 0.10.6 -> 0.10.7
Non-source changes:
- drops `bash -n` style syntax checking for writeScript(Bin) to avoid
  breaking cross builds
- add postResholve hook (supersedes unmerged pr #439997)
- track testing changes in resholve
2025-11-09 20:04:03 -06:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Travis A. Everett
8a1b029672 resholve: 0.10.5 -> 0.10.6
Also:
- use nixfmt style for examples in README.md
- drop passthru consumer test for ix removed in #397949
2025-06-22 08:58:20 -05: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 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
isabel
63aceac766 treewide: remove unused occurence of fetchFromGitHub argument 2024-05-30 05:56:07 +00:00
Travis A. Everett
4908b1a604 resholve: 0.10.2 -> 0.10.5
Also:
- update README
- expand passthru tests to cover packages that depend on resholve
- drop temporary patches added to tests during bats update (so that
  PR didn't need to go through staging)
2024-04-22 14:02:51 -05:00
Travis A. Everett
e0f9929a69 resholve: patch test breaks coming in bats 1.11
I'm preparing to update bats to 1.11.0, but a change it includes will
require updating 3 of resholve's tests. Since a full resholve source
bump would need to go through staging now, I'm just patching the tests
in the separate test derivation.
2024-04-13 12:34:27 -05:00
Travis A. Everett
7bf3f335a3 resholve: 0.9.0 -> 0.9.1 2023-12-01 05:49:28 +00:00
Travis A. Everett
714cc1046a resholve: fix tests after #232713
One of resholve's passthru tests depended on getting `script` from
util-linux, but it's no longer there on macos after #232713.

This change just tracks upstream change to use unixtools.script, which
is what I should have used in the first place. Upstream commit for
reference:

3407150949
2023-06-04 14:47:31 -05: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
Travis A. Everett
ba5e8f2835 resholve: track missed upstream Nix fix
Forgot to port this resholve Nix API fix in the course of #184292.

Same change as:
github.com/abathur/resholve/commit/b743d2eb12d82e35c567733a7a884174e3606641
2023-01-14 14:38:32 -06:00
Travis A. Everett
09d441d21c resholve: 0.6.9 -> 0.8.0
Also track upstream .nix changes over same window.
2022-04-08 21:13:20 -04:00
Travis A. Everett
3b83eeb903 resholve: 0.6.6 -> 0.6.8 2021-11-12 00:24:36 -06:00
Travis A. Everett
a9454f539b resholve: actually import resholveScript* 2021-09-30 18:54:09 -05:00
Travis A. Everett
b5833091d4 resholve: 0.6.0 -> 0.6.1, add resholveScript* fns 2021-09-27 16:01:09 +09:00
Travis A. Everett
08b791a01b resholve: 0.5.1 -> 0.6.0, refactor, +binlore
A bit going on here.
- Updating resholve from 0.5.1 -> 0.6.0
  - adding a depdendency, `binlore`, to supply ~intel on executables
    that supports new functionality in resholve
  - adding a package, `yallback`, which provides rule-based callbacks
    for YARA rule matches (depdency of `binlore`).
  - automatically generating "lore" for each `input` to a solution in
    `resholvePackage`.
  - update README
- restructuring some nix components to better support
  my local dev and CI workflows.
  - moved package tests into passthru/tests.nix (cuts `bats` out of
    resholve's immediate dependencies, makes it possible to add my
    existing Nix API test).
  - move my oil-dev patches out of resholve into a separate repo (no
    oil rebuild every time resholve's source changes). Also moving
    oil-dev into its own Nix file here, to ~track the default.nix in
    its own repo.
2021-09-22 09:54:04 -05:00