{ lib , stdenv , fetchurl , runCommand , fetchCrate , rustPlatform , Security , openssl , pkg-config , SystemConfiguration , libiconv }: rustPlatform.buildRustPackage rec { pname = "duckscript_cli"; version = "0.8.17"; src = fetchCrate { inherit pname version; sha256 = "sha256-fEAm7HhRGYZpGL9I8h3wX8AnPs00pG/ui7Rm+PaXJpA="; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ]; cargoHash = "sha256-kll2q5HhcpizBDbWipj30F8WEQnjG1fndxCHoXBbik8="; meta = with lib; { description = "Simple, extendable and embeddable scripting language."; homepage = "https://github.com/sagiegurari/duckscript"; license = licenses.asl20; maintainers = with maintainers; [ mkg20001 ]; mainProgram = "duck"; }; }