nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 pkg-config,
6 openssl,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "cargo-whatfeatures";
11 version = "0.9.13";
12
13 src = fetchFromGitHub {
14 owner = "museun";
15 repo = "cargo-whatfeatures";
16 rev = "v${version}";
17 sha256 = "sha256-YJ08oBTn9OwovnTOuuc1OuVsQp+/TPO3vcY4ybJ26Ms=";
18 };
19
20 cargoHash = "sha256-p95aYXsZM9xwP/OHEFwq4vRiXoO1n1M0X3TNbleH+Zw=";
21
22 nativeBuildInputs = [ pkg-config ];
23
24 buildInputs = [ openssl ];
25
26 meta = {
27 description = "Simple cargo plugin to get a list of features for a specific crate";
28 mainProgram = "cargo-whatfeatures";
29 homepage = "https://github.com/museun/cargo-whatfeatures";
30 license = with lib.licenses; [
31 mit
32 asl20
33 ];
34 maintainers = with lib.maintainers; [
35 ivan-babrou
36 matthiasbeyer
37 ];
38 };
39}