nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ca / cargo-information / package.nix
blob510f87ebe279187bd58dcdb83fc358b6479d9428
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   makeWrapper,
6   pkg-config,
7   openssl,
8   curl,
9   rustc,
10   stdenv,
11   darwin,
14 rustPlatform.buildRustPackage rec {
15   pname = "cargo-information";
16   version = "0.7.0";
18   src = fetchFromGitHub {
19     owner = "hi-rustin";
20     repo = "cargo-information";
21     rev = "v${version}";
22     hash = "sha256-gu1t0jMBJ+mJIVMGy1JlabzcOT4lbmTvO/VQfxLLsWM=";
23   };
25   cargoLock = {
26     lockFile = ./Cargo.lock;
27     outputHashes = {
28       "cargo-test-macro-0.2.1" = "sha256-3sergm2T4VXT41ERCLL7p9+pJwIKzT54qdla8V58Psk=";
29     };
30   };
32   checkFlags = [
33     # Require network access
34     "--skip=cargo_information::specify_version_within_ws_and_match_with_lockfile::case"
35     "--skip=cargo_information::within_ws::case"
36     "--skip=cargo_information::within_ws_with_alternative_registry::case"
37     "--skip=cargo_information::within_ws_without_lockfile::case"
38     "--skip=cargo_information::transitive_dependency_within_ws::case"
39   ];
41   nativeBuildInputs = [
42     pkg-config
43     makeWrapper
44   ];
46   buildInputs =
47     [
48       openssl
49       curl
50     ]
51     ++ lib.optionals stdenv.hostPlatform.isDarwin [
52       darwin.apple_sdk.frameworks.Security
53     ];
55   postFixup = ''
56     wrapProgram $out/bin/cargo-info \
57       --prefix PATH : ${lib.makeBinPath [ rustc ]}
58   '';
60   meta = with lib; {
61     description = "Cargo subcommand to show information about crates";
62     mainProgram = "cargo-info";
63     homepage = "https://github.com/hi-rustin/cargo-information";
64     changelog = "https://github.com/hi-rustin/cargo-information/blob/v${src.rev}/CHANGELOG.md";
65     license = licenses.mit;
66     maintainers = with maintainers; [ eopb ];
67   };