Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 versionCheckHook, 6 nix-update-script, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "mprocs"; 11 version = "0.7.3"; 12 13 src = fetchFromGitHub { 14 owner = "pvolok"; 15 repo = "mprocs"; 16 tag = "v${version}"; 17 hash = "sha256-/FuvejcZoaHzlYh4zYDVS1WimzNMNbRZyM39OBi02VA="; 18 }; 19 20 cargoHash = "sha256-i9oQT2vpA5nAgQgVpxxfRPvCIb4w1emt1YsjMS6UPIk="; 21 22 nativeInstallCheckInputs = [ 23 versionCheckHook 24 ]; 25 versionCheckProgramArg = "--version"; 26 doInstallCheck = true; 27 28 passthru = { 29 updateScript = nix-update-script { }; 30 }; 31 32 meta = { 33 description = "TUI tool to run multiple commands in parallel and show the output of each command separately"; 34 homepage = "https://github.com/pvolok/mprocs"; 35 changelog = "https://github.com/pvolok/mprocs/releases/tag/v${version}"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ 38 GaetanLepage 39 pyrox0 40 ]; 41 platforms = lib.platforms.unix; 42 mainProgram = "mprocs"; 43 }; 44}