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