Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
934 B
Nix
Raw Permalink Normal View History

2025-03-03 10:16:35 +00:00
{
lib,
2025-05-01 22:36:13 +01:00
stdenv,
2025-03-03 10:16:35 +00:00
rustPlatform,
fetchFromGitHub,
pkg-config,
udev,
}:
rustPlatform.buildRustPackage {
pname = "cargo-embassy";
version = "0.3.4";
src = fetchFromGitHub {
owner = "adinack";
repo = "cargo-embassy";
# 0.3.4 with cargo.lock. Switch back
# to tag = when next version released
rev = "989a406387ebda89acd943c57e207d78eba600c1";
hash = "sha256-C8eFQFHYIj2P+zPOKLVBNX97UDVbbcdjbqh5n53ktCU=";
};
2025-05-01 22:36:13 +01:00
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
2025-03-03 10:16:35 +00:00
udev
];
nativeBuildInputs = [
pkg-config
];
cargoHash = "sha256-iLGoc6CKZGlq9bw1sL0jCVm9lGa0i/BXiseU1USGjfQ=";
meta = {
description = "Command line tool for creating Embassy projects";
homepage = "https://github.com/adinack/cargo-embassy";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.samw ];
2025-05-01 22:36:13 +01:00
platforms = lib.platforms.unix;
2025-03-03 10:16:35 +00:00
mainProgram = "cargo-embassy";
};
}