mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
Merge pull request #300703 from eopb/init-cargo-information
cargo-information: init at 0.4.2
This commit is contained in:
commit
b6bcc53de9
|
@ -5850,6 +5850,13 @@
|
|||
githubId = 418227;
|
||||
name = "Jean-Philippe Braun";
|
||||
};
|
||||
eopb = {
|
||||
email = "ethanboxx@gmail.com";
|
||||
github = "eopb";
|
||||
githubId = 8074468;
|
||||
matrix = "@efun:matrix.org";
|
||||
name = "Ethan Brierley";
|
||||
};
|
||||
eownerdead = {
|
||||
name = "EOWNERDEAD";
|
||||
email = "eownerdead@disroot.org";
|
||||
|
|
3501
pkgs/by-name/ca/cargo-information/Cargo.lock
generated
Normal file
3501
pkgs/by-name/ca/cargo-information/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
62
pkgs/by-name/ca/cargo-information/package.nix
Normal file
62
pkgs/by-name/ca/cargo-information/package.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, pkg-config
|
||||
, openssl
|
||||
, rustc
|
||||
, stdenv
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-information";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hi-rustin";
|
||||
repo = "cargo-information";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-k481iHQ1tVi9fF5/xYR99/1/oRv1nS3WH7W55aPSyfc=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"cargo-test-macro-0.1.0" = "sha256-4u3Ium+WYBdyocuehDulRgUOR74JC6AUI2+A5xlnUGw=";
|
||||
};
|
||||
};
|
||||
|
||||
checkFlags = [
|
||||
# Require network access
|
||||
"--skip=cargo_information::specify_version_within_ws_and_match_with_lockfile::case"
|
||||
"--skip=cargo_information::within_ws::case"
|
||||
"--skip=cargo_information::within_ws_with_alternative_registry::case"
|
||||
"--skip=cargo_information::within_ws_without_lockfile::case"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/cargo-info \
|
||||
--prefix PATH : ${lib.makeBinPath [ rustc ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cargo subcommand to show information about crates";
|
||||
mainProgram = "cargo-info";
|
||||
homepage = "https://github.com/hi-rustin/cargo-information";
|
||||
changelog = "https://github.com/hi-rustin/cargo-information/blob/v${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eopb ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue