Commit Graph

54 Commits

Author SHA1 Message Date
R. Ryantm
3272f77b85 c2patool: 0.27.3 -> 0.27.4 2026-08-04 17:57:16 +00:00
R. Ryantm
491bb995d7 c2patool: 0.26.72 -> 0.27.3 2026-07-26 15:20:05 +00:00
R. Ryantm
0a5abaaf4f c2patool: 0.26.69 -> 0.26.72 2026-07-17 11:01:51 +00:00
R. Ryantm
269dcb2b8c c2patool: 0.26.68 -> 0.26.69 2026-07-08 12:42:29 +00:00
R. Ryantm
32981fe8b7 c2patool: 0.26.67 -> 0.26.68 2026-06-24 12:32:31 +00:00
R. Ryantm
00c4abb1b1 c2patool: 0.26.62 -> 0.26.67 2026-06-15 19:08:01 +00:00
R. Ryantm
889b8aeaa1 c2patool: 0.26.60 -> 0.26.62 2026-06-06 21:24:03 +00:00
R. Ryantm
f6bbe1e1a2 c2patool: 0.26.59 -> 0.26.60 2026-05-28 13:40:37 +00:00
R. Ryantm
37fbb1c70b c2patool: 0.26.56 -> 0.26.59 2026-05-20 00:40:08 +00:00
R. Ryantm
3b7ba60e23 c2patool: 0.26.55 -> 0.26.56 2026-05-11 18:28:01 +00:00
R. Ryantm
b53019057a c2patool: 0.26.50 -> 0.26.55 2026-05-03 10:37:44 +00:00
R. Ryantm
38055509e8 c2patool: 0.26.37 -> 0.26.50 2026-04-24 16:35:32 +00:00
R. Ryantm
c8053eb3c3 c2patool: 0.26.33 -> 0.26.37 2026-03-13 13:34:53 +00:00
R. Ryantm
9fb288de74 c2patool: 0.26.29 -> 0.26.33 2026-03-05 16:09:22 +00:00
R. Ryantm
8243d3c19b c2patool: 0.26.26 -> 0.26.29 2026-02-17 16:23:04 +00:00
R. Ryantm
f53e6164ad c2patool: 0.26.9 -> 0.26.26 2026-02-10 07:03:31 +00:00
R. Ryantm
f6d0520ca0 c2patool: 0.26.8 -> 0.26.9 2026-01-06 00:41:14 +00:00
R. Ryantm
2d60049022 c2patool: 0.26.7 -> 0.26.8 2025-12-24 21:19:56 +00:00
R. Ryantm
48fe70cb00 c2patool: 0.26.6 -> 0.26.7 2025-12-11 21:36:27 +00:00
R. Ryantm
f670e2920c c2patool: 0.26.5 -> 0.26.6 2025-12-05 00:51:55 +00:00
R. Ryantm
b8c7cd4bd3 c2patool: 0.26.1 -> 0.26.5 2025-11-19 11:16:19 +00:00
R. Ryantm
2597370275 c2patool: 0.24.0 -> 0.26.1 2025-11-12 15:12:30 +00:00
R. Ryantm
8cd6597f5e c2patool: 0.23.4 -> 0.24.0 2025-10-25 12:31:39 +00:00
R. Ryantm
9c887ed5c0 c2patool: 0.23.2 -> 0.23.4 2025-10-06 06:43:07 +00:00
R. Ryantm
4d95ec56de c2patool: 0.22.0 -> 0.23.2 2025-09-25 17:45:09 +00:00
R. Ryantm
70055ec60d c2patool: 0.20.3 -> 0.22.0 2025-09-14 13:15:04 +00:00
R. Ryantm
825595553d c2patool: 0.20.0 -> 0.20.3 2025-09-03 12:25:42 +00:00
R. Ryantm
20329be416 c2patool: 0.19.1 -> 0.20.0 2025-08-15 01:05:35 +00:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
R. Ryantm
9cfd8f7078 c2patool: 0.19.0 -> 0.19.1 2025-07-22 00:49:35 +00:00
R. Ryantm
620d725744 c2patool: 0.18.0 -> 0.19.0 2025-06-20 22:08:20 +00:00
R. Ryantm
0c95f0d166 c2patool: 0.17.0 -> 0.18.0 2025-06-01 06:49:44 +00:00
R. Ryantm
5018f46846 c2patool: 0.16.5 -> 0.17.0 2025-05-21 12:46:53 +00:00
R. Ryantm
4ebc99abe8 c2patool: 0.16.4 -> 0.16.5 2025-04-29 12:54:22 +00:00
emaryn
b4a1c350fa c2patool: 0.9.12 -> 0.16.4 2025-04-16 16:11:05 +08: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
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
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
9e7eb7cd6d c2patool: 0.9.10 -> 0.9.12 2024-11-25 08:35:22 -05:00
R. Ryantm
9faa0bfa97 c2patool: 0.9.9 -> 0.9.10 2024-10-08 00:51:02 +00: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
0439e80308 c2patool: 0.9.8 -> 0.9.9 2024-09-18 01:30:24 +00:00
nicoo
2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00
R. Ryantm
11ba04074e c2patool: 0.9.7 -> 0.9.8 2024-08-31 00:27:27 +00:00
R. Ryantm
bcf00b220d c2patool: 0.9.6 -> 0.9.7 2024-08-16 00:30:00 +00:00
R. Ryantm
d221eafeb2 c2patool: 0.9.5 -> 0.9.6 2024-08-01 05:34:14 +00:00
R. Ryantm
f791d2f99e c2patool: 0.9.4 -> 0.9.5 2024-07-19 02:06:11 +00:00
R. Ryantm
e8f559ab64 c2patool: 0.9.3 -> 0.9.4 2024-06-26 00:29:10 +00:00
R. Ryantm
419faf6bbc c2patool: 0.9.2 -> 0.9.3 2024-06-05 07:23:21 +00:00