Merge pull request #113193 from danieldk/cargo-install-hook
This commit is contained in:
commit
236b56c94d
@ -196,7 +196,7 @@ sometimes it may be necessary to disable this so the tests run consecutively.
|
|||||||
```nix
|
```nix
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
/* ... */
|
/* ... */
|
||||||
cargoParallelTestThreads = false;
|
dontUseCargoParallelTests = true;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -293,6 +293,12 @@ attributes can also be used:
|
|||||||
variable `buildAndTestSubdir` can be used to build a crate in a
|
variable `buildAndTestSubdir` can be used to build a crate in a
|
||||||
Cargo workspace. Additional maturin flags can be passed through
|
Cargo workspace. Additional maturin flags can be passed through
|
||||||
`maturinBuildFlags`.
|
`maturinBuildFlags`.
|
||||||
|
* `cargoCheckHook`: run tests using Cargo. Additional flags can be
|
||||||
|
passed to Cargo using `checkFlags` and `checkFlagsArray`. By
|
||||||
|
default, tests are run in parallel. This can be disabled by setting
|
||||||
|
`dontUseCargoParallelTests`.
|
||||||
|
* `cargoInstallHook`: install binaries and static/shared libraries
|
||||||
|
that were built using `cargoBuildHook`.
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
postInstall = "make PREFIX=$out copy-data";
|
postInstall = "make PREFIX=$out copy-data";
|
||||||
|
|
||||||
# Sometimes tests fail when run in parallel
|
# Sometimes tests fail when run in parallel
|
||||||
cargoParallelTestThreads = false;
|
dontUseCargoParallelThreads = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A graphical client for plain-text protocols written in Rust with GTK. It currently supports the Gemini, Gopher and Finger protocols";
|
description = "A graphical client for plain-text protocols written in Rust with GTK. It currently supports the Gemini, Gopher and Finger protocols";
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
, lib
|
, lib
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, cacert
|
, cacert
|
||||||
, cargo
|
|
||||||
, cargoBuildHook
|
, cargoBuildHook
|
||||||
|
, cargoCheckHook
|
||||||
|
, cargoInstallHook
|
||||||
, cargoSetupHook
|
, cargoSetupHook
|
||||||
, fetchCargoTarball
|
, fetchCargoTarball
|
||||||
, runCommandNoCC
|
, runCommandNoCC
|
||||||
@ -35,13 +36,11 @@
|
|||||||
, nativeBuildInputs ? []
|
, nativeBuildInputs ? []
|
||||||
, cargoUpdateHook ? ""
|
, cargoUpdateHook ? ""
|
||||||
, cargoDepsHook ? ""
|
, cargoDepsHook ? ""
|
||||||
, cargoBuildFlags ? []
|
|
||||||
, buildType ? "release"
|
, buildType ? "release"
|
||||||
, meta ? {}
|
, meta ? {}
|
||||||
, cargoVendorDir ? null
|
, cargoVendorDir ? null
|
||||||
, checkType ? buildType
|
, checkType ? buildType
|
||||||
, depsExtraArgs ? {}
|
, depsExtraArgs ? {}
|
||||||
, cargoParallelTestThreads ? true
|
|
||||||
|
|
||||||
# Toggles whether a custom sysroot is created when the target is a .json file.
|
# Toggles whether a custom sysroot is created when the target is a .json file.
|
||||||
, __internal_dontAddSysroot ? false
|
, __internal_dontAddSysroot ? false
|
||||||
@ -87,9 +86,6 @@ let
|
|||||||
originalCargoToml = src + /Cargo.toml; # profile info is later extracted
|
originalCargoToml = src + /Cargo.toml; # profile info is later extracted
|
||||||
};
|
};
|
||||||
|
|
||||||
releaseDir = "target/${shortTarget}/${buildType}";
|
|
||||||
tmpDir = "${releaseDir}-tmp";
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
# Tests don't currently work for `no_std`, and all custom sysroots are currently built without `std`.
|
# Tests don't currently work for `no_std`, and all custom sysroots are currently built without `std`.
|
||||||
@ -99,16 +95,21 @@ assert useSysroot -> !(args.doCheck or true);
|
|||||||
stdenv.mkDerivation ((removeAttrs args ["depsExtraArgs"]) // lib.optionalAttrs useSysroot {
|
stdenv.mkDerivation ((removeAttrs args ["depsExtraArgs"]) // lib.optionalAttrs useSysroot {
|
||||||
RUSTFLAGS = "--sysroot ${sysroot} " + (args.RUSTFLAGS or "");
|
RUSTFLAGS = "--sysroot ${sysroot} " + (args.RUSTFLAGS or "");
|
||||||
} // {
|
} // {
|
||||||
inherit buildAndTestSubdir cargoDeps releaseDir tmpDir;
|
inherit buildAndTestSubdir cargoDeps;
|
||||||
|
|
||||||
cargoBuildFlags = lib.concatStringsSep " " cargoBuildFlags;
|
cargoBuildType = buildType;
|
||||||
|
|
||||||
cargoBuildType = "--${buildType}";
|
|
||||||
|
|
||||||
patchRegistryDeps = ./patch-registry-deps;
|
patchRegistryDeps = ./patch-registry-deps;
|
||||||
|
|
||||||
nativeBuildInputs = nativeBuildInputs ++
|
nativeBuildInputs = nativeBuildInputs ++ [
|
||||||
[ cacert git cargo cargoBuildHook cargoSetupHook rustc ];
|
cacert
|
||||||
|
git
|
||||||
|
cargoBuildHook
|
||||||
|
cargoCheckHook
|
||||||
|
cargoInstallHook
|
||||||
|
cargoSetupHook
|
||||||
|
rustc
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = buildInputs ++ lib.optional stdenv.hostPlatform.isMinGW windows.pthreads;
|
buildInputs = buildInputs ++ lib.optional stdenv.hostPlatform.isMinGW windows.pthreads;
|
||||||
|
|
||||||
@ -128,52 +129,10 @@ stdenv.mkDerivation ((removeAttrs args ["depsExtraArgs"]) // lib.optionalAttrs u
|
|||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = args.checkPhase or (let
|
|
||||||
argstr = "${lib.optionalString (checkType == "release") "--release"} --target ${target} --frozen";
|
|
||||||
threads = if cargoParallelTestThreads then "$NIX_BUILD_CORES" else "1";
|
|
||||||
in ''
|
|
||||||
${lib.optionalString (buildAndTestSubdir != null) "pushd ${buildAndTestSubdir}"}
|
|
||||||
runHook preCheck
|
|
||||||
echo "Running cargo test ${argstr} -- ''${checkFlags} ''${checkFlagsArray+''${checkFlagsArray[@]}}"
|
|
||||||
cargo test -j $NIX_BUILD_CORES ${argstr} -- --test-threads=${threads} ''${checkFlags} ''${checkFlagsArray+"''${checkFlagsArray[@]}"}
|
|
||||||
runHook postCheck
|
|
||||||
${lib.optionalString (buildAndTestSubdir != null) "popd"}
|
|
||||||
'');
|
|
||||||
|
|
||||||
doCheck = args.doCheck or true;
|
doCheck = args.doCheck or true;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
installPhase = args.installPhase or ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
# This needs to be done after postBuild: packages like `cargo` do a pushd/popd in
|
|
||||||
# the pre/postBuild-hooks that need to be taken into account before gathering
|
|
||||||
# all binaries to install.
|
|
||||||
mkdir -p $tmpDir
|
|
||||||
cp -r $releaseDir/* $tmpDir/
|
|
||||||
bins=$(find $tmpDir \
|
|
||||||
-maxdepth 1 \
|
|
||||||
-type f \
|
|
||||||
-executable ! \( -regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \))
|
|
||||||
|
|
||||||
# rename the output dir to a architecture independent one
|
|
||||||
mapfile -t targets < <(find "$NIX_BUILD_TOP" -type d | grep '${tmpDir}$')
|
|
||||||
for target in "''${targets[@]}"; do
|
|
||||||
rm -rf "$target/../../${buildType}"
|
|
||||||
ln -srf "$target" "$target/../../"
|
|
||||||
done
|
|
||||||
mkdir -p $out/bin $out/lib
|
|
||||||
|
|
||||||
xargs -r cp -t $out/bin <<< $bins
|
|
||||||
find $tmpDir \
|
|
||||||
-maxdepth 1 \
|
|
||||||
-regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \
|
|
||||||
-print0 | xargs -r -0 cp -t $out/lib
|
|
||||||
rmdir --ignore-fail-on-non-empty $out/lib $out/bin
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = { inherit cargoDeps; } // (args.passthru or {});
|
passthru = { inherit cargoDeps; } // (args.passthru or {});
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
declare -a cargoBuildFlags
|
||||||
|
|
||||||
cargoBuildHook() {
|
cargoBuildHook() {
|
||||||
echo "Executing cargoBuildHook"
|
echo "Executing cargoBuildHook"
|
||||||
|
|
||||||
@ -17,16 +19,16 @@ cargoBuildHook() {
|
|||||||
cargo build -j $NIX_BUILD_CORES \
|
cargo build -j $NIX_BUILD_CORES \
|
||||||
--target @rustTargetPlatformSpec@ \
|
--target @rustTargetPlatformSpec@ \
|
||||||
--frozen \
|
--frozen \
|
||||||
${cargoBuildType} \
|
--${cargoBuildType} \
|
||||||
${cargoBuildFlags}
|
${cargoBuildFlags}
|
||||||
)
|
)
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
|
|
||||||
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
|
||||||
echo "Finished cargoBuildHook"
|
echo "Finished cargoBuildHook"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
41
pkgs/build-support/rust/hooks/cargo-check-hook.sh
Normal file
41
pkgs/build-support/rust/hooks/cargo-check-hook.sh
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
declare -a checkFlags
|
||||||
|
|
||||||
|
cargoCheckHook() {
|
||||||
|
echo "Executing cargoCheckHook"
|
||||||
|
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
if [[ -n "${buildAndTestSubdir-}" ]]; then
|
||||||
|
pushd "${buildAndTestSubdir}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z ${dontUseCargoParallelTests-} ]]; then
|
||||||
|
threads=$NIX_BUILD_CORES
|
||||||
|
else
|
||||||
|
threads=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
argstr="--${cargoBuildType} --target @rustTargetPlatformSpec@ --frozen";
|
||||||
|
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
cargo test \
|
||||||
|
-j $NIX_BUILD_CORES \
|
||||||
|
${argstr} -- \
|
||||||
|
--test-threads=${threads} \
|
||||||
|
${checkFlags} \
|
||||||
|
${checkFlagsArray+"${checkFlagsArray[@]}"}
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ -n "${buildAndTestSubdir-}" ]]; then
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Finished cargoCheckHook"
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "${checkPhase-}" ]; then
|
||||||
|
checkPhase=cargoCheckHook
|
||||||
|
fi
|
49
pkgs/build-support/rust/hooks/cargo-install-hook.sh
Normal file
49
pkgs/build-support/rust/hooks/cargo-install-hook.sh
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
cargoInstallPostBuildHook() {
|
||||||
|
echo "Executing cargoInstallPostBuildHook"
|
||||||
|
|
||||||
|
releaseDir=target/@shortTarget@/$cargoBuildType
|
||||||
|
tmpDir="${releaseDir}-tmp";
|
||||||
|
|
||||||
|
mkdir -p $tmpDir
|
||||||
|
cp -r ${releaseDir}/* $tmpDir/
|
||||||
|
bins=$(find $tmpDir \
|
||||||
|
-maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-executable ! \( -regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \))
|
||||||
|
|
||||||
|
echo "Finished cargoInstallPostBuildHook"
|
||||||
|
}
|
||||||
|
|
||||||
|
cargoInstallHook() {
|
||||||
|
echo "Executing cargoInstallHook"
|
||||||
|
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
# rename the output dir to a architecture independent one
|
||||||
|
|
||||||
|
releaseDir=target/@shortTarget@/$cargoBuildType
|
||||||
|
tmpDir="${releaseDir}-tmp";
|
||||||
|
|
||||||
|
mapfile -t targets < <(find "$NIX_BUILD_TOP" -type d | grep "${tmpDir}$")
|
||||||
|
for target in "${targets[@]}"; do
|
||||||
|
rm -rf "$target/../../${cargoBuildType}"
|
||||||
|
ln -srf "$target" "$target/../../"
|
||||||
|
done
|
||||||
|
mkdir -p $out/bin $out/lib
|
||||||
|
|
||||||
|
xargs -r cp -t $out/bin <<< $bins
|
||||||
|
find $tmpDir \
|
||||||
|
-maxdepth 1 \
|
||||||
|
-regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \
|
||||||
|
-print0 | xargs -r -0 cp -t $out/lib
|
||||||
|
rmdir --ignore-fail-on-non-empty $out/lib $out/bin
|
||||||
|
runHook postInstall
|
||||||
|
|
||||||
|
echo "Finished cargoInstallHook"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [ -z "${installPhase-}" ]; then
|
||||||
|
installPhase=cargoInstallHook
|
||||||
|
postBuildHooks+=(cargoInstallPostBuildHook)
|
||||||
|
fi
|
@ -36,6 +36,24 @@ in {
|
|||||||
};
|
};
|
||||||
} ./cargo-build-hook.sh) {};
|
} ./cargo-build-hook.sh) {};
|
||||||
|
|
||||||
|
cargoCheckHook = callPackage ({ }:
|
||||||
|
makeSetupHook {
|
||||||
|
name = "cargo-check-hook.sh";
|
||||||
|
deps = [ cargo ];
|
||||||
|
substitutions = {
|
||||||
|
inherit rustTargetPlatformSpec;
|
||||||
|
};
|
||||||
|
} ./cargo-check-hook.sh) {};
|
||||||
|
|
||||||
|
cargoInstallHook = callPackage ({ }:
|
||||||
|
makeSetupHook {
|
||||||
|
name = "cargo-install-hook.sh";
|
||||||
|
deps = [ ];
|
||||||
|
substitutions = {
|
||||||
|
inherit shortTarget;
|
||||||
|
};
|
||||||
|
} ./cargo-install-hook.sh) {};
|
||||||
|
|
||||||
cargoSetupHook = callPackage ({ }:
|
cargoSetupHook = callPackage ({ }:
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
name = "cargo-setup-hook.sh";
|
name = "cargo-setup-hook.sh";
|
||||||
|
@ -12,7 +12,8 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildRustPackage = callPackage ../../../build-support/rust {
|
buildRustPackage = callPackage ../../../build-support/rust {
|
||||||
inherit rustc cargo cargoBuildHook cargoSetupHook fetchCargoTarball;
|
inherit cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook
|
||||||
|
fetchCargoTarball rustc;
|
||||||
};
|
};
|
||||||
|
|
||||||
rustcSrc = callPackage ./rust-src.nix {
|
rustcSrc = callPackage ./rust-src.nix {
|
||||||
@ -26,5 +27,5 @@ rec {
|
|||||||
# Hooks
|
# Hooks
|
||||||
inherit (callPackage ../../../build-support/rust/hooks {
|
inherit (callPackage ../../../build-support/rust/hooks {
|
||||||
inherit cargo;
|
inherit cargo;
|
||||||
}) cargoBuildHook cargoSetupHook maturinBuildHook;
|
}) cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook maturinBuildHook;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, openssh, openssl, pkg-config, cmake, zlib, curl, libiconv
|
, openssh, openssl, pkg-config, cmake, zlib, curl, libiconv
|
||||||
, CoreFoundation, Security }:
|
, CoreFoundation, Security }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rls";
|
pname = "rls";
|
||||||
inherit (rustPlatform.rust.rustc) src version;
|
inherit (rustPlatform.rust.rustc) src version;
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ rustPlatform.buildRustPackage {
|
|||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
# client tests are flaky
|
# client tests are flaky
|
||||||
rm tests/client.rs
|
rm ${buildAndTestSubdir}/tests/client.rs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# a nightly compiler is required unless we use this cheat code.
|
# a nightly compiler is required unless we use this cheat code.
|
||||||
|
@ -26,7 +26,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
# using the [makefile](https://github.com/wasmerio/wasmer/blob/master/Makefile).
|
# using the [makefile](https://github.com/wasmerio/wasmer/blob/master/Makefile).
|
||||||
# Enabling cranelift as this used to be the old default. At least one backend is
|
# Enabling cranelift as this used to be the old default. At least one backend is
|
||||||
# needed for the run subcommand to work.
|
# needed for the run subcommand to work.
|
||||||
cargoBuildFlags = [ "--features 'backend-cranelift'" ];
|
cargoBuildFlags = [ "--features" "backend-cranelift" ];
|
||||||
|
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||||
|
|
||||||
|
@ -9,11 +9,9 @@ assert lib.assertMsg (sqliteSupport == true || postgresqlSupport == true || mysq
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) optional optionals optionalString;
|
inherit (lib) optional optionals optionalString;
|
||||||
features = ''
|
features = optional sqliteSupport "sqlite"
|
||||||
${optionalString sqliteSupport "sqlite"} \
|
++ optional postgresqlSupport "postgres"
|
||||||
${optionalString postgresqlSupport "postgres"} \
|
++ optional mysqlSupport "mysql";
|
||||||
${optionalString mysqlSupport "mysql"} \
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -35,11 +33,12 @@ rustPlatform.buildRustPackage rec {
|
|||||||
./allow-warnings.patch
|
./allow-warnings.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
cargoBuildFlags = [ "--no-default-features --features \"${features}\"" ];
|
cargoBuildFlags = [ "--no-default-features" "--features" "${lib.concatStringsSep "," features}" ];
|
||||||
cargoPatches = [ ./cargo-lock.patch ];
|
cargoPatches = [ ./cargo-lock.patch ];
|
||||||
cargoSha256 = "1vbb7r0dpmq8363i040bkhf279pz51c59kcq9v5qr34hs49ish8g";
|
cargoSha256 = "1vbb7r0dpmq8363i040bkhf279pz51c59kcq9v5qr34hs49ish8g";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ optional stdenv.isDarwin Security
|
++ optional stdenv.isDarwin Security
|
||||||
++ optional (stdenv.isDarwin && mysqlSupport) libiconv
|
++ optional (stdenv.isDarwin && mysqlSupport) libiconv
|
||||||
@ -47,12 +46,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
++ optional postgresqlSupport postgresql
|
++ optional postgresqlSupport postgresql
|
||||||
++ optionals mysqlSupport [ mysql zlib ];
|
++ optionals mysqlSupport [ mysql zlib ];
|
||||||
|
|
||||||
# We must `cd diesel_cli`, we cannot use `--package diesel_cli` to build
|
buildAndTestSubdir = "diesel_cli";
|
||||||
# because --features fails to apply to the package:
|
|
||||||
# https://github.com/rust-lang/cargo/issues/5015
|
|
||||||
# https://github.com/rust-lang/cargo/issues/4753
|
|
||||||
preBuild = "cd diesel_cli";
|
|
||||||
postBuild = "cd ..";
|
|
||||||
|
|
||||||
checkPhase = optionalString sqliteSupport ''
|
checkPhase = optionalString sqliteSupport ''
|
||||||
(cd diesel_cli && cargo check --features sqlite)
|
(cd diesel_cli && cargo check --features sqlite)
|
||||||
@ -65,7 +59,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
# Fix the build with mariadb, which otherwise shows "error adding symbols:
|
# Fix the build with mariadb, which otherwise shows "error adding symbols:
|
||||||
# DSO missing from command line" errors for libz and libssl.
|
# DSO missing from command line" errors for libz and libssl.
|
||||||
NIX_LDFLAGS = lib.optionalString mysqlSupport "-lz -lssl -lcrypto";
|
NIX_LDFLAGS = optionalString mysqlSupport "-lz -lssl -lcrypto";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Database tool for working with Rust projects that use Diesel";
|
description = "Database tool for working with Rust projects that use Diesel";
|
||||||
|
@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "sha256-jTZso61Lyt6jprBxBAhvchgOsgM9y1qBleTxUx1jCnE=";
|
cargoSha256 = "sha256-jTZso61Lyt6jprBxBAhvchgOsgM9y1qBleTxUx1jCnE=";
|
||||||
checkFlagsArray = lib.optionals stdenv.isDarwin [ "--skip=copy" ];
|
checkFlagsArray = lib.optionals stdenv.isDarwin [ "--skip=copy" ];
|
||||||
cargoParallelTestThreads = false;
|
dontUseCargoParallelTests = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
$out/bin/the-way config default tmp.toml
|
$out/bin/the-way config default tmp.toml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user