Commit Graph

14 Commits

Author SHA1 Message Date
aleksana
1862813d11 treewide: convert cargoSha256 to cargoHash
This is done with the following bash script:

```
#!/usr/bin/env bash
process_line() {
    local filename=${1%:}
    if [[ $4 =~ \"(.*)\"\; ]]; then
      local sha256="${BASH_REMATCH[1]}"
    fi
    [[ -z $sha256 ]] && return 0
    local hash=$(nix hash to-sri --type sha256 $sha256)
    echo "Processing: $filename"
    echo "  $sha256 => $hash"
    sed -i "s|cargoSha256 = \"$sha256\"|cargoHash = \"$hash\"|"
$filename
}

# split output by line
grep -r 'cargoSha256 = ' . | while IFS= read -r line; do
    # split them further by space
    read -r -a parts <<< "$line"
    process_line "${parts[@]}"
done

```
2024-07-03 21:54:10 +08:00
figsoda
f1ec434848 pkgs/tools/misc: remove dead code
with the help of deadnix & nil
2023-07-13 17:37:07 +03:00
Vladimír Čunát
5054a30632
licensor: fix tests, this time in a longterm way 2023-01-19 19:16:21 +01:00
Fabian Affolter
9f3e0b28d0 licensor: add patch to fix tests 2022-02-09 09:46:32 +01:00
figsoda
899376d4be licensor: set meta.mainProgram 2021-10-08 15:40:18 -04: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
Evan Stoll
75a4bdc28c licensor: "Fix" integration test for 2021
* Use latest version from master (as of 2021-02-03)
  * Apply patch from https://github.com/raftario/licensor/pull/28 that
    "fixes" the `license_and_name` test by bumping the year from 2020
    to 2021, until the test implementation can be properly addressed

  * This also includes a security update from
    https://github.com/raftario/licensor/pull/8

  * Instead of adding 2 more patches (one for the test fix, one for the
    security update), using the latest commit from master seems to make
    the most sense for now

  * remove fetchpatch from inputs
2021-02-03 13:42:10 -05:00
Oleksii Filonenko
512c3c0a05 maintainers: rename filalex77 -> Br1ght0ne 2020-11-17 13:09:31 +02:00
zowoq
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Benjamin Hipple
23f37d2db9 licensor: upgrade cargo fetcher and cargoSha256 2020-03-10 17:07:31 -04:00
Christian Lütke-Stetzkamp
c8299d69b0 licensor: Fix test in 2020 2020-03-03 22:40:33 +01: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
Oleksii Filonenko
aea497460e
licensor: 2.0.0 -> 2.1.0
https://github.com/raftario/licensor/releases/tag/v2.1.0
2019-12-04 15:15:35 +02:00
Oleksii Filonenko
3fe11d1180
licensor: init at 2.0.0 2019-11-11 21:04:14 +02:00