Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 25 lines 666 B view raw
1{ stdenv, fetchFromGitHub, rustPlatform }: 2 3rustPlatform.buildRustPackage rec { 4 name = "parallel-rust-${version}"; 5 version = "0.11.3"; 6 7 src = fetchFromGitHub { 8 owner = "mmstick"; 9 repo = "parallel"; 10 rev = version; 11 sha256 = "1bb1m3ckkrxlnw9w24ig70bd1zwyrbaw914q3xz5yv43c0l6pn9c"; 12 }; 13 14 cargoSha256 = "0p3wpjz3jrqjasi39zq6q54dhpymc5jp0mfsnzbq6dvz18s8m588"; 15 16 patches = [ ./fix_cargo_lock_version.patch ]; 17 18 meta = with stdenv.lib; { 19 description = "A command-line CPU load balancer written in Rust"; 20 homepage = https://github.com/mmstick/parallel; 21 license = licenses.mit; 22 maintainers = []; 23 platforms = platforms.all; 24 }; 25}