{ stdenv, lib, darwin , rustPlatform, fetchFromGitHub , openssl, pkgconfig }: rustPlatform.buildRustPackage rec { pname = "cargo-edit"; version = "0.3.2"; src = fetchFromGitHub { owner = "killercup"; repo = pname; rev = "v${version}"; sha256 = "1z51zvv3sim5mcmr57akzzlkr5phb5f2a9zawff3s7a6lnz9rjzz"; }; cargoSha256 = "1xy5xcfzfqrgvk5g97qab4ddd3i76nqn8vr0lsfpbbqfc2sm737a"; nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig; buildInputs = lib.optional (!stdenv.isDarwin) openssl; propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; patches = [ ./disable-network-based-test.patch ]; meta = with lib; { description = "A utility for managing cargo dependencies from the command line"; homepage = https://github.com/killercup/cargo-edit; license = with licenses; [ mit ]; maintainers = with maintainers; [ gerschtli jb55 ]; platforms = platforms.all; }; }