9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
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.20";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-o9GKcRBtQn0m8pQHlokACGVBArd4khtoJ6e4Q2hcT14=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
cargoHash = "sha256-dG7bBg/pRcSWWV0NK8gWbXAmsNipHQKUwmTHHFdUsrc=";
|
|
|
|
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";
|
|
};
|
|
}
|