Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, rustPlatform 3, fetchCrate 4, pkg-config 5, openssl 6, stdenv 7, curl 8, CoreFoundation 9, Security 10, SystemConfiguration 11}: 12 13rustPlatform.buildRustPackage rec { 14 pname = "cargo-outdated"; 15 version = "0.11.2"; 16 17 src = fetchCrate { 18 inherit pname version; 19 sha256 = "sha256-SkFMdE7VAZrT7e5SMrfW8bBA6zPqQV7LhSy3OmshUAs="; 20 }; 21 22 cargoHash = "sha256-ZcG/4vyrcJNAMiZdR3MFyqX5Udn8wGAfiGT5uP1BSMo="; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ 27 curl 28 CoreFoundation 29 Security 30 SystemConfiguration 31 ]; 32 33 meta = with lib; { 34 description = "A cargo subcommand for displaying when Rust dependencies are out of date"; 35 homepage = "https://github.com/kbknapp/cargo-outdated"; 36 changelog = "https://github.com/kbknapp/cargo-outdated/blob/${version}/CHANGELOG.md"; 37 license = with licenses; [ asl20 /* or */ mit ]; 38 maintainers = with maintainers; [ ivan ]; 39 }; 40}