Commit Graph

48 Commits

Author SHA1 Message Date
Weijia Wang
c924c21d1a bfs: 4.1 -> 4.1.4 (#514871) 2026-08-16 09:44:02 +00:00
coolcuber
fc37f5fa9c bfscripts: fix version 2026-07-28 18:51:18 -04:00
klea
ed0971ca1d bfetch: fix version 2026-07-18 19:42:50 +00:00
R. Ryantm
5a539604c6 bfs: 4.1 -> 4.1.4 2026-07-08 07:50:38 +00:00
liberodark
74c17aeac8 treewide: move to by-name part 4 2026-05-21 14:19:59 +02:00
Henri Menke
973faa3bb0 bfs: Fix static build 2026-04-09 18:22:01 +02:00
Marcin Serwin
a03723889e maintainers: drop tbenst
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-24 00:22:21 +01:00
Stefan Frijters
e87230c61c bftpd: move CFLAGS into env for structuredAttrs 2026-02-19 19:23:16 +01:00
rewine
4844218070 bfr: remove (gcc-15 build failure) (#484866) 2026-02-07 10:59:46 +00:00
Sergei Trofimovich
39cbb81b04 bfr: remove (gcc-15 build failure)
The project has no homepage, the page where tarball lies returns
suspicious HTML. The build fails on` gcc-15` as
https://hydra.nixos.org/build/319884933:

    configure:1333:67: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
     1333 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
          |                                                                   ^~~~

Let's delete the package.

Co-authored-by: rewine <luhongxu@deepin.org>
2026-02-07 09:46:07 +00:00
quantenzitrone
9c8e96055a various: fix pname misuse in urls 2026-02-05 01:51:59 +01:00
quantenzitrone
6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00
László Kupcsik
2ad807559b bftools: 6.3.0 -> 7.3.0 2025-12-30 19:37:05 -05:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01: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
Jonathan Davies
116036d574 treewide: Remove redundant versionCheckProgramArg = "--version"; with:
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
  sed -i '/versionCheckProgramArg/d' "$f"
  sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00
Guy Chronister
1b31a4ceaf various: change rev to tag 2025-10-02 18:45:49 -05:00
Emily
8ee0bc5c94 bfc: drop 2025-09-14 19:03:24 +01:00
R. Ryantm
feb9f8cd5b bfs: 4.0.8 -> 4.1 2025-08-12 00:41:42 +00:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Markus Theil
04514c4b7d bfscripts: unstable-2023-05-15 -> unstable-2025-06-27
Multiple fixes since 2023, mlx-mkbfb faster and more
features.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2025-07-07 09:25:38 +02:00
R. Ryantm
aecf8faeeb bfs: 4.0.6 -> 4.0.8 2025-06-24 20:16:01 +00:00
Aleksana
8f7c8a944c bfr: fix broken build because of stricter GCC default checks (#410835) 2025-06-01 22:11:47 +08:00
Peder Bergebakken Sundt
c4f02ff31e treewide: substitute pname for strings 2025-05-29 17:04:28 +02:00
Manuel Frischknecht
58e77c03a3 bfr: fix broken build because of stricter GCC default checks
GCC now complains if `main` has no explicitly declared return type.
Because `bfr`s `configure` script uses a very minimal C application
to check whether GCC works _at all_ (literally: `main(){return(0);}`),
this caused configure failures.

Another issue with the `configure` script is that it logs the compiler
errors for its checks to `configure.log` (and not to stdout or stderr),
which means that the root cause wasn't logged during the failed nix
build.

I added a patch that rewires the compiler error file descriptor so
that it will simply log to stderr and another patch that fixes the
missing return type in the C example.

Unfortunately, it looks like the server isn't serving the source
files anymore (and finding an official upstream repo which I could
send a PR to seems... non-trivial).
2025-05-25 17:45:28 +02:00
R. Ryantm
1a65e64e7c bftpd: 6.2 -> 6.3 2025-04-26 00:35:50 +00: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
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Gaetan Lepage
bfe27cf81c treewide: use a string for versionCheckProgramArg where possible 2025-04-05 14:45:13 +02:00
Sigmanificient
e6fe6f4b7c treewide: remove unused rec expressions 2025-03-13 21:34:05 +01:00
Peder Bergebakken Sundt
357d2530e5 treewide: substitute pname for strings
Inspired by https://github.com/NixOS/nixpkgs/pull/387725#issuecomment-2704943777, script is based on https://github.com/NixOS/nixpkgs/pull/336172 using what i learned in https://github.com/NixOS/nixpkgs/pull/386865, part of https://github.com/NixOS/nixpkgs/issues/346453

Should be zero rebuilds.

All candidates were made using:

```shell

export NIXPKGS_ALLOW_UNFREE=1
export NIXPKGS_ALLOW_INSECURE=1
export NIXPKGS_ALLOW_BROKEN=1

git-wait restore .

test -s packages.json || ( set -x;
  time nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f ./. -qaP --json --meta --drv-path --out-path --show-trace --no-allow-import-from-derivation --arg config '{ allowAliases = false; }' > packages.json
)

list_attrpath_fname_col() {
    jq <packages.json 'to_entries[] | select(.value.meta.position==null|not) | "\(.key)\t\(.value.meta.position)"' -r |
        sed -e "s#\t$(realpath .)/#\t#" |
        sed -e 's#:\([0-9]*\)$#\t\1#' |
        grep . |
        grep -iv haskell |
        grep -iv /top-level/ |
        grep -iv chicken |
        grep pkgs/by-name/ |
        grep -iv build |
        grep -E '/(package|default)\.nix'
}

FLOCKDIR="$(mktemp -d)"
N_WORKERS=4
while read attrpath fname col; do
    grep -qE 'repo *= *("\$\{pname\}"|pname);' "$fname" || continue

    echo | (
        # mutex on fname
        flock --nonblock 200 || {
            >&2 echo "failed to aquire lock for $fname"
            exit 1
        }

        echo "$attrpath"
        data="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json)" || exit
        test -n "$data" || exit
        pname="$(jq <<<"$data" .pname -r)"
        test -n "$pname" || exit

        (set -x
            sd -F '${pname}'  "$pname"         "$fname"
            sd -F ' = pname;' " = \"$pname\";" "$fname"
        )

        data2="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json)"
        if [[ "$data" = "$data2" ]]; then
            (set -x; git-wait add "$fname")
        else
            (set -x; git-wait restore "$fname")
            exit
        fi

        (set -x
            sd -F ' rec {' ' {' "$fname"
        )

        data3="$(nix eval --impure  --expr 'with import ./. {}; { inherit ('"$attrpath"') pname drvPath passthru meta; drvPath2='"$attrpath"'.src.drvPath; }' --json 2>/dev/nul)"

        if [[ "$data" = "$data3" ]]; then
            (set -x; git-wait add "$fname")
        else
            (set -x; git-wait restore "$fname")
        fi

    ) 200>"$FLOCKDIR"/"$(sha256sum - <<<"$fname" | cut -d' ' -f1)".lock &

    while [[ $(jobs -p | wc -l) -ge $N_WORKERS ]]; do
        wait -n < <(jobs -p) || true
    done

done < <(list_attrpath_fname_col)

wait

git restore .

time nix-env --extra-experimental-features no-url-literals --option system x86_64-linux -f ./. -qaP --json --meta --drv-path --out-path --show-trace --no-allow-import-from-derivation --arg config '{ allowAliases = false; }' > packages2.json
```

`diff packages{,2}.json` is empty, indicating that no package nor src derivation has changed.
I checked and cherry-picked the changes using `GIT_DIFF_OPTS='-u15' git -c interactive.singleKey=true add --patch`
2025-03-11 23:55:31 +01:00
R. Ryantm
4edb87fb90 bfs: 4.0.5 -> 4.0.6 2025-02-28 00:58:55 +00:00
Kenichi Kamiya
82d95f18fd bfg-repo-cleaner: 1.14.0 -> 1.15.0
Diff: https://github.com/rtyley/bfg-repo-cleaner/compare/v1.14.0...v1.15.0
2025-02-10 14:31:52 +09:00
Kenichi Kamiya
cb8300fbae bfg-repo-cleaner: prefer versionCheckHook rather than testers.testVersion
bd352cd678/doc/stdenv/passthru.chapter.md (L84)
2025-02-10 14:31:51 +09:00
Alyssa Ross
63bff8c132 treewide: migrate to fetchCargoVendor, batch 1
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip

This will take a long time.  It might be possible to parallelize it
using xargs' -P option.  I haven't tested it.
2025-01-23 11:46:43 +01:00
R. Ryantm
10fd8fa7c7 bfs: 4.0.4 -> 4.0.5 2025-01-19 00:33:09 +00:00
Silvan Mosberger
84d4f874c2 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 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
K900
6739ae1174 Merge remote-tracking branch 'origin/staging-next' into staging 2024-12-02 22:43:34 +03:00
R. Ryantm
5b3042490f bfs: 4.0.3 -> 4.0.4 2024-12-01 20:35:11 +00:00
github-actions[bot]
da1fc0632d Merge staging-next into staging 2024-11-29 12:06:39 +00:00
Aleksana
43d34c4e96 bfg-repo-cleaner: format with nixfmt-rfc-style and add passthru.tests.version (#357491) 2024-11-29 17:13:52 +08:00
github-actions[bot]
a7d715306f Merge staging-next into staging 2024-11-27 00:15:38 +00:00
FliegendeWurst
c0c28f3e46 treewide: fix unstable Gentoo patch URLs 2024-11-26 18:47:29 +01:00
Kenichi Kamiya
5a4df0c14f bfg-repo-cleaner: add passthru.tests.version 2024-11-20 16:54:15 +09:00
Kenichi Kamiya
8ad7b50bf8 bfg-repo-cleaner: format with nixfmt-rfc-style 2024-11-20 16:52:34 +09:00
Kenichi Kamiya
20a29cb94f bfg-repo-cleaner: 1.13.0 -> 1.14.0 2024-11-20 16:42:56 +09:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00