Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchurl 4, runCommand 5, fetchCrate 6, rustPlatform 7, Security 8, openssl 9, pkg-config 10, SystemConfiguration 11, libiconv 12}: 13 14rustPlatform.buildRustPackage rec { 15 pname = "duckscript_cli"; 16 version = "0.8.18"; 17 18 src = fetchCrate { 19 inherit pname version; 20 sha256 = "sha256-AbdGyRCeypmsBc2QdR4Tdl3MeUlK9xmNmB63axpUfFI="; 21 }; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ openssl ] 26 ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ]; 27 28 cargoHash = "sha256-Exsgt1yV3EiEewzDU4YLhSYGpzr4t2o5hm3evyAkO44="; 29 30 meta = with lib; { 31 description = "Simple, extendable and embeddable scripting language."; 32 homepage = "https://github.com/sagiegurari/duckscript"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ mkg20001 ]; 35 mainProgram = "duck"; 36 }; 37}