chore(tvix/tools/narinfo2parquet): Regenerate Cargo.nix and filter src
The Cargo.lock also got changed because of crate2nix using --freezed. Change-Id: Id5225e73ec5894bc324f363660472a7efdd803cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/11967 Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
4f7b19701c
commit
f52b142035
3 changed files with 31 additions and 38 deletions
4
tvix/tools/narinfo2parquet/Cargo.lock
generated
4
tvix/tools/narinfo2parquet/Cargo.lock
generated
|
@ -426,9 +426,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "data-encoding"
|
name = "data-encoding"
|
||||||
version = "2.4.0"
|
version = "2.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"
|
checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "der"
|
name = "der"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This file was @generated by crate2nix 0.14.0 with the command:
|
# This file was @generated by crate2nix 0.14.1 with the command:
|
||||||
# "generate" "--all-features"
|
# "generate" "--all-features"
|
||||||
# See https://github.com/kolloch/crate2nix for more info.
|
# See https://github.com/kolloch/crate2nix for more info.
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@
|
||||||
, rootFeatures ? [ "default" ]
|
, rootFeatures ? [ "default" ]
|
||||||
# If true, throw errors instead of issueing deprecation warnings.
|
# If true, throw errors instead of issueing deprecation warnings.
|
||||||
, strictDeprecation ? false
|
, strictDeprecation ? false
|
||||||
|
# Elements to add to the `-C target-feature=` argument passed to `rustc`
|
||||||
|
# (separated by `,`, prefixed with `+`).
|
||||||
# Used for conditional compilation based on CPU feature detection.
|
# Used for conditional compilation based on CPU feature detection.
|
||||||
, targetFeatures ? [ ]
|
, targetFeatures ? [ ]
|
||||||
# Whether to perform release builds: longer compile times, faster binaries.
|
# Whether to perform release builds: longer compile times, faster binaries.
|
||||||
|
@ -919,7 +921,7 @@ rec {
|
||||||
{
|
{
|
||||||
name = "libc";
|
name = "libc";
|
||||||
packageId = "libc";
|
packageId = "libc";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "aarch64-linux-android");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "aarch64-linux-android");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "libc";
|
name = "libc";
|
||||||
|
@ -1215,9 +1217,9 @@ rec {
|
||||||
};
|
};
|
||||||
"data-encoding" = rec {
|
"data-encoding" = rec {
|
||||||
crateName = "data-encoding";
|
crateName = "data-encoding";
|
||||||
version = "2.4.0";
|
version = "2.6.0";
|
||||||
edition = "2018";
|
edition = "2018";
|
||||||
sha256 = "023k3dk8422jgbj7k72g63x51h1mhv91dhw1j4h205vzh6fnrrn2";
|
sha256 = "1qnn68n4vragxaxlkqcb1r28d3hhj43wch67lm4rpxlw89wnjmp8";
|
||||||
authors = [
|
authors = [
|
||||||
"Julien Cretin <git@ia0.eu>"
|
"Julien Cretin <git@ia0.eu>"
|
||||||
];
|
];
|
||||||
|
@ -2644,12 +2646,7 @@ rec {
|
||||||
requiredFeatures = [ ];
|
requiredFeatures = [ ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
# We can't filter paths with references in Nix 2.4
|
src = lib.cleanSourceWith { filter = sourceFilter; src = ./.; };
|
||||||
# See https://github.com/NixOS/nix/issues/5410
|
|
||||||
src =
|
|
||||||
if ((lib.versionOlder builtins.nixVersion "2.4pre20211007") || (lib.versionOlder "2.5" builtins.nixVersion))
|
|
||||||
then lib.cleanSourceWith { filter = sourceFilter; src = ./.; }
|
|
||||||
else ./.;
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{
|
{
|
||||||
name = "anyhow";
|
name = "anyhow";
|
||||||
|
@ -2686,12 +2683,7 @@ rec {
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
edition = "2021";
|
edition = "2021";
|
||||||
crateBin = [ ];
|
crateBin = [ ];
|
||||||
# We can't filter paths with references in Nix 2.4
|
src = lib.cleanSourceWith { filter = sourceFilter; src = ../../nix-compat; };
|
||||||
# See https://github.com/NixOS/nix/issues/5410
|
|
||||||
src =
|
|
||||||
if ((lib.versionOlder builtins.nixVersion "2.4pre20211007") || (lib.versionOlder "2.5" builtins.nixVersion))
|
|
||||||
then lib.cleanSourceWith { filter = sourceFilter; src = ../../nix-compat; }
|
|
||||||
else ../../nix-compat;
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{
|
{
|
||||||
name = "bitflags";
|
name = "bitflags";
|
||||||
|
@ -3334,7 +3326,7 @@ rec {
|
||||||
{
|
{
|
||||||
name = "getrandom";
|
name = "getrandom";
|
||||||
packageId = "getrandom";
|
packageId = "getrandom";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "wasm32-unknown-unknown");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "wasm32-unknown-unknown");
|
||||||
features = [ "js" ];
|
features = [ "js" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -6465,12 +6457,12 @@ rec {
|
||||||
{
|
{
|
||||||
name = "winapi-i686-pc-windows-gnu";
|
name = "winapi-i686-pc-windows-gnu";
|
||||||
packageId = "winapi-i686-pc-windows-gnu";
|
packageId = "winapi-i686-pc-windows-gnu";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "i686-pc-windows-gnu");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "i686-pc-windows-gnu");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "winapi-x86_64-pc-windows-gnu";
|
name = "winapi-x86_64-pc-windows-gnu";
|
||||||
packageId = "winapi-x86_64-pc-windows-gnu";
|
packageId = "winapi-x86_64-pc-windows-gnu";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "x86_64-pc-windows-gnu");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "x86_64-pc-windows-gnu");
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
features = {
|
features = {
|
||||||
|
@ -7518,7 +7510,7 @@ rec {
|
||||||
{
|
{
|
||||||
name = "windows_aarch64_gnullvm";
|
name = "windows_aarch64_gnullvm";
|
||||||
packageId = "windows_aarch64_gnullvm 0.48.5";
|
packageId = "windows_aarch64_gnullvm 0.48.5";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "aarch64-pc-windows-gnullvm");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "aarch64-pc-windows-gnullvm");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "windows_aarch64_msvc";
|
name = "windows_aarch64_msvc";
|
||||||
|
@ -7543,7 +7535,7 @@ rec {
|
||||||
{
|
{
|
||||||
name = "windows_x86_64_gnullvm";
|
name = "windows_x86_64_gnullvm";
|
||||||
packageId = "windows_x86_64_gnullvm 0.48.5";
|
packageId = "windows_x86_64_gnullvm 0.48.5";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "x86_64-pc-windows-gnullvm");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "x86_64-pc-windows-gnullvm");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "windows_x86_64_msvc";
|
name = "windows_x86_64_msvc";
|
||||||
|
@ -7565,7 +7557,7 @@ rec {
|
||||||
{
|
{
|
||||||
name = "windows_aarch64_gnullvm";
|
name = "windows_aarch64_gnullvm";
|
||||||
packageId = "windows_aarch64_gnullvm 0.52.0";
|
packageId = "windows_aarch64_gnullvm 0.52.0";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "aarch64-pc-windows-gnullvm");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "aarch64-pc-windows-gnullvm");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "windows_aarch64_msvc";
|
name = "windows_aarch64_msvc";
|
||||||
|
@ -7590,7 +7582,7 @@ rec {
|
||||||
{
|
{
|
||||||
name = "windows_x86_64_gnullvm";
|
name = "windows_x86_64_gnullvm";
|
||||||
packageId = "windows_x86_64_gnullvm 0.52.0";
|
packageId = "windows_x86_64_gnullvm 0.52.0";
|
||||||
target = { target, features }: (pkgs.rust.lib.toRustTarget stdenv.hostPlatform == "x86_64-pc-windows-gnullvm");
|
target = { target, features }: (stdenv.hostPlatform.rust.rustcTarget == "x86_64-pc-windows-gnullvm");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "windows_x86_64_msvc";
|
name = "windows_x86_64_msvc";
|
||||||
|
@ -7935,14 +7927,11 @@ rec {
|
||||||
fuchsia = true;
|
fuchsia = true;
|
||||||
test = false;
|
test = false;
|
||||||
|
|
||||||
/* We are choosing an arbitrary rust version to grab `lib` from,
|
inherit (platform.rust.platform)
|
||||||
which is unfortunate, but `lib` has been version-agnostic the
|
arch
|
||||||
whole time so this is good enough for now.
|
os
|
||||||
*/
|
vendor;
|
||||||
os = pkgs.rust.lib.toTargetOs platform;
|
family = platform.rust.platform.target-family;
|
||||||
arch = pkgs.rust.lib.toTargetArch platform;
|
|
||||||
family = pkgs.rust.lib.toTargetFamily platform;
|
|
||||||
vendor = pkgs.rust.lib.toTargetVendor platform;
|
|
||||||
env = "gnu";
|
env = "gnu";
|
||||||
endian =
|
endian =
|
||||||
if platform.parsed.cpu.significantByte.name == "littleEndian"
|
if platform.parsed.cpu.significantByte.name == "littleEndian"
|
||||||
|
@ -8186,7 +8175,7 @@ rec {
|
||||||
let
|
let
|
||||||
self = {
|
self = {
|
||||||
crates = lib.mapAttrs (packageId: value: buildByPackageIdForPkgsImpl self pkgs packageId) crateConfigs;
|
crates = lib.mapAttrs (packageId: value: buildByPackageIdForPkgsImpl self pkgs packageId) crateConfigs;
|
||||||
target = makeTarget pkgs.stdenv.hostPlatform;
|
target = makeTarget stdenv.hostPlatform;
|
||||||
build = mkBuiltByPackageIdByPkgs pkgs.buildPackages;
|
build = mkBuiltByPackageIdByPkgs pkgs.buildPackages;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -8261,8 +8250,6 @@ rec {
|
||||||
buildRustCrateForPkgsFunc pkgs
|
buildRustCrateForPkgsFunc pkgs
|
||||||
(
|
(
|
||||||
crateConfig // {
|
crateConfig // {
|
||||||
# https://github.com/NixOS/nixpkgs/issues/218712
|
|
||||||
dontStrip = stdenv.hostPlatform.isDarwin;
|
|
||||||
src = crateConfig.src or (
|
src = crateConfig.src or (
|
||||||
pkgs.fetchurl rec {
|
pkgs.fetchurl rec {
|
||||||
name = "${crateConfig.crateName}-${crateConfig.version}.tar.gz";
|
name = "${crateConfig.crateName}-${crateConfig.version}.tar.gz";
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, depot, ... }:
|
||||||
|
|
||||||
(pkgs.callPackage ./Cargo.nix { }).rootCrate.build
|
(pkgs.callPackage ./Cargo.nix {
|
||||||
|
defaultCrateOverrides = (depot.tvix.utils.defaultCrateOverridesForPkgs pkgs) // {
|
||||||
|
narinfo2parquet = prev: {
|
||||||
|
src = depot.tvix.utils.filterRustCrateSrc { root = prev.src.origSrc; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}).rootCrate.build
|
||||||
|
|
Loading…
Reference in a new issue