Skip to content

Commit

Permalink
cyme: add darwin support
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Oct 25, 2023
1 parent 1310e49 commit a3ba001
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions pkgs/by-name/cy/cyme/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
, fetchFromGitHub
, rustPlatform
, pkg-config
, stdenv
, darwin
, libusb1
, udev
, nix-update-script
Expand All @@ -21,8 +23,22 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-hSd53K50Y4K/fYGfsT2fHUaipVSpeYN6/EOFlv4ocuE=";

nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 udev ];
nativeBuildInputs = [
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 { };

Expand Down

0 comments on commit a3ba001

Please sign in to comment.