5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
37 lines
831 B
Nix
37 lines
831 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, runCommand
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, Security
|
|
, openssl
|
|
, pkg-config
|
|
, SystemConfiguration
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "duckscript_cli";
|
|
version = "0.9.1";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-jpAZpx8VooYapSLApWWMLTj7c3wqw/S1w1zHN3OGzMs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
cargoHash = "sha256-n40V75yIuSC1abq4/cYFqj9JqGj/uJ36ZSz8APovE6o=";
|
|
|
|
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";
|
|
};
|
|
}
|