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-10-09 19:29:22 +00:00
|
|
|
version = "0.9.1";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-jpAZpx8VooYapSLApWWMLTj7c3wqw/S1w1zHN3OGzMs=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-n40V75yIuSC1abq4/cYFqj9JqGj/uJ36ZSz8APovE6o=";
|
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
|
|
|
};
|
|
|
|
}
|