cyme: add darwin support
This commit is contained in:
parent
1310e498f7
commit
a3ba0010c0
1 changed files with 18 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, stdenv
|
||||||
|
, darwin
|
||||||
, libusb1
|
, libusb1
|
||||||
, udev
|
, udev
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
|
@ -21,8 +23,22 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-hSd53K50Y4K/fYGfsT2fHUaipVSpeYN6/EOFlv4ocuE=";
|
cargoHash = "sha256-hSd53K50Y4K/fYGfsT2fHUaipVSpeYN6/EOFlv4ocuE=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libusb1 udev ];
|
pkg-config
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.DarwinTools
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libusb1
|
||||||
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
|
udev
|
||||||
|
];
|
||||||
|
|
||||||
|
checkFlags = lib.optionals stdenv.isDarwin [
|
||||||
|
# system_profiler is not available in the sandbox
|
||||||
|
"--skip=test_run"
|
||||||
|
];
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue