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