c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
37 lines
834 B
Nix
37 lines
834 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, runCommand
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, Security
|
|
, openssl
|
|
, pkg-config
|
|
, SystemConfiguration
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "duckscript_cli";
|
|
version = "0.8.18";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-AbdGyRCeypmsBc2QdR4Tdl3MeUlK9xmNmB63axpUfFI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
cargoHash = "sha256-Exsgt1yV3EiEewzDU4YLhSYGpzr4t2o5hm3evyAkO44=";
|
|
|
|
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";
|
|
};
|
|
}
|