Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 protobuf, 8 pcre2, 9 nix-update-script, 10}: 11 12rustPlatform.buildRustPackage (finalAttrs: { 13 pname = "holo-cli"; 14 version = "0.5.0-unstable-2025-07-01"; 15 16 src = fetchFromGitHub { 17 owner = "holo-routing"; 18 repo = "holo-cli"; 19 rev = "f04c1d0dcd6d800e079f33b8431b17fa00afeeb1"; 20 hash = "sha256-ZJeXGT5oajynk44550W4qz+OZEx7y52Wwy+DYzrHZig="; 21 }; 22 23 cargoHash = "sha256-bsoxWjOMzRRtFGEaaqK0/adhGpDcejCIY0Pzw1HjQ5U="; 24 passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; 25 26 # Use rust nightly features 27 RUSTC_BOOTSTRAP = 1; 28 29 nativeBuildInputs = [ 30 cmake 31 pkg-config 32 protobuf 33 ]; 34 buildInputs = [ 35 pcre2 36 ]; 37 38 meta = { 39 description = "Holo` Command Line Interface"; 40 homepage = "https://github.com/holo-routing/holo-cli"; 41 teams = with lib.teams; [ ngi ]; 42 maintainers = with lib.maintainers; [ themadbit ]; 43 license = lib.licenses.mit; 44 mainProgram = "holo-cli"; 45 platforms = lib.platforms.all; 46 }; 47})