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