mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
cargo-embassy: fix build on darwin
This commit is contained in:
parent
7830da27bd
commit
790abc9b4e
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
@ -18,7 +19,7 @@ rustPlatform.buildRustPackage {
|
||||||
hash = "sha256-C8eFQFHYIj2P+zPOKLVBNX97UDVbbcdjbqh5n53ktCU=";
|
hash = "sha256-C8eFQFHYIj2P+zPOKLVBNX97UDVbbcdjbqh5n53ktCU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
udev
|
udev
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -34,6 +35,7 @@ rustPlatform.buildRustPackage {
|
||||||
homepage = "https://github.com/adinack/cargo-embassy";
|
homepage = "https://github.com/adinack/cargo-embassy";
|
||||||
license = lib.licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = [ lib.maintainers.samw ];
|
maintainers = [ lib.maintainers.samw ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
mainProgram = "cargo-embassy";
|
mainProgram = "cargo-embassy";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue