1{ lib, pkg-config, rustPlatform, fetchFromGitHub, openssl }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-bitbake";
5 version = "0.3.15";
6
7 src = fetchFromGitHub {
8 owner = "meta-rust";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1ffjkwaqvmyz374azrv6gna19z2fcg82is2k2n2gm50isbxw2aa5";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ openssl ];
16
17 cargoSha256 = "0mm6059wjh5p8923dwz55dpwi55gq2bcmpx7kn40pq5ppkiqjiw9";
18
19 meta = with lib; {
20 description = "Cargo extension that can generate BitBake recipes utilizing the classes from meta-rust";
21 homepage = "https://github.com/meta-rust/cargo-bitbake";
22 license = with licenses; [ mit asl20 ];
23 maintainers = with maintainers; [ rvarago ];
24 platforms = [ "x86_64-linux" ];
25 };
26}