Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, rustPlatform 3, fetchCrate 4, Security 5, stdenv 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "spr"; 10 version = "1.3.4"; 11 12 src = fetchCrate { 13 inherit pname version; 14 sha256 = "sha256-lsdWInJWcofwU3P4vAWcLQeZuV3Xn1z30B7mhODJ4Vc="; 15 }; 16 17 cargoSha256 = "sha256-VQg3HDNw+L1FsFtHXnIw6dMVUxV63ZWHCxiknzsqXW8="; 18 19 buildInputs = lib.optional stdenv.isDarwin Security; 20 21 meta = with lib; { 22 description = "Submit pull requests for individual, amendable, rebaseable commits to GitHub"; 23 homepage = "https://github.com/getcord/spr"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ sven-of-cord ]; 26 }; 27}