about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/rust/cargo-bitbake/default.nix
blob: ee29976eb98564b5a5954f976bbffa17b7436ff9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, pkg-config, rustPlatform, fetchFromGitHub, openssl }:

rustPlatform.buildRustPackage rec {
  pname = "cargo-bitbake";
  version = "0.3.15";

  src = fetchFromGitHub {
    owner = "meta-rust";
    repo = pname;
    rev = "v${version}";
    sha256 = "1ffjkwaqvmyz374azrv6gna19z2fcg82is2k2n2gm50isbxw2aa5";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ openssl ];

  cargoSha256 = "0mm6059wjh5p8923dwz55dpwi55gq2bcmpx7kn40pq5ppkiqjiw9";

  meta = with lib; {
    description = "Cargo extension that can generate BitBake recipes utilizing the classes from meta-rust";
    homepage = "https://github.com/meta-rust/cargo-bitbake";
    license = with licenses; [ mit asl20 ];
    maintainers = with maintainers; [ rvarago ];
    platforms = [ "x86_64-linux" ];
  };
}