Merge pull request #238677 from figsoda/local-registry
This commit is contained in:
commit
c09bf88297
53
pkgs/development/tools/rust/cargo-local-registry/default.nix
Normal file
53
pkgs/development/tools/rust/cargo-local-registry/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, curl
|
||||
, openssl
|
||||
, zlib
|
||||
, stdenv
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-local-registry";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dhovart";
|
||||
repo = "cargo-local-registry";
|
||||
rev = version;
|
||||
hash = "sha256-nxLqWtZl3ZF/iodYsQCYQ/prjp80QMzJLLp31q7d2vs=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-k94jzMdZDWpxSHVEZh1Qsv8OuUKuqU2YNBN1Mqj8HJA=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
curl
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
openssl
|
||||
zlib
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
# tests require internet access
|
||||
doCheck = false;
|
||||
|
||||
# Cargo.lock is outdated
|
||||
preConfigure = ''
|
||||
cargo metadata --offline
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cargo subcommand to manage local registries";
|
||||
homepage = "https://github.com/dhovart/cargo-local-registry";
|
||||
changelog = "https://github.com/dhovart/cargo-local-registry/releases/tag/${src.rev}";
|
||||
license = with licenses; [ asl20 mit ];
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
|
@ -16550,6 +16550,7 @@ with pkgs;
|
|||
cargo-license = callPackage ../development/tools/rust/cargo-license { };
|
||||
cargo-llvm-cov = callPackage ../development/tools/rust/cargo-llvm-cov { };
|
||||
cargo-llvm-lines = callPackage ../development/tools/rust/cargo-llvm-lines { };
|
||||
cargo-local-registry = callPackage ../development/tools/rust/cargo-local-registry { };
|
||||
cargo-lock = callPackage ../development/tools/rust/cargo-lock { };
|
||||
cargo-machete = callPackage ../development/tools/rust/cargo-machete { };
|
||||
cargo-outdated = callPackage ../development/tools/rust/cargo-outdated {
|
||||
|
|
Loading…
Reference in a new issue