Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7 zlib, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "cargo-edit"; 12 version = "0.13.6"; 13 14 src = fetchFromGitHub { 15 owner = "killercup"; 16 repo = "cargo-edit"; 17 rev = "v${version}"; 18 hash = "sha256-z+LTgCeTUr3D0LEbw0yHlk1di2W95XewbYlgusD2TLg="; 19 }; 20 21 cargoHash = "sha256-/+DDA64kemZKzKdaKnXK+R4e8FV59qT5HCGcwyOz7R8="; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ 26 openssl 27 zlib 28 ]; 29 30 doCheck = false; # integration tests depend on changing cargo config 31 32 meta = { 33 description = "Utility for managing cargo dependencies from the command line"; 34 homepage = "https://github.com/killercup/cargo-edit"; 35 changelog = "https://github.com/killercup/cargo-edit/blob/v${version}/CHANGELOG.md"; 36 license = with lib.licenses; [ 37 asl20 # or 38 mit 39 ]; 40 maintainers = with lib.maintainers; [ 41 Br1ght0ne 42 figsoda 43 gerschtli 44 jb55 45 killercup 46 matthiasbeyer 47 ]; 48 }; 49}