2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, runCommand
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, SystemConfiguration
|
|
|
|
, libiconv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "duckscript_cli";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.8.17";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-fEAm7HhRGYZpGL9I8h3wX8AnPs00pG/ui7Rm+PaXJpA=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
cargoHash = "sha256-kll2q5HhcpizBDbWipj30F8WEQnjG1fndxCHoXBbik8=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple, extendable and embeddable scripting language.";
|
|
|
|
homepage = "https://github.com/sagiegurari/duckscript";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "duck";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|