Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "rustycli"; 9 version = "0.1.1"; 10 11 src = fetchCrate { 12 inherit pname version; 13 hash = "sha256-4Txw6Cmwwgu7K8VIVoX9GR76VUqAEw6uYptmczbjqg0="; 14 }; 15 16 cargoHash = "sha256-QjkUiPwjG25NsvAXM3jqQVtJzYiXhzVqFaDN1b7DXDE="; 17 18 # some examples fail to compile 19 cargoTestFlags = [ "--tests" ]; 20 21 meta = { 22 description = "Access the rust playground right in terminal"; 23 mainProgram = "rustycli"; 24 homepage = "https://github.com/pwnwriter/rustycli"; 25 changelog = "https://github.com/pwnwriter/rustycli/releases/tag/v${version}"; 26 license = lib.licenses.mit; 27 maintainers = with lib.maintainers; [ figsoda ]; 28 }; 29}