mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
argc: add passthru.tests.cross
This commit is contained in:
parent
60949c89cd
commit
c0eb246672
@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
buildPackages,
|
||||
pkgsCross,
|
||||
rustPlatform,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
@ -36,6 +37,20 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
disallowedReferences = lib.optional (!canExecuteHost) buildPackages.argc;
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
cross =
|
||||
(
|
||||
if stdenv.hostPlatform.isDarwin then
|
||||
if stdenv.hostPlatform.isAarch64 then pkgsCross.x86_64-darwin else pkgsCross.aarch64-darwin
|
||||
else if stdenv.hostPlatform.isAarch64 then
|
||||
pkgsCross.gnu64
|
||||
else
|
||||
pkgsCross.aarch64-multiplatform
|
||||
).argc;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line options, arguments and sub-commands parser for bash";
|
||||
mainProgram = "argc";
|
||||
|
Loading…
Reference in New Issue
Block a user