c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
37 lines
836 B
Nix
37 lines
836 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, runCommand
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, Security
|
|
, openssl
|
|
, pkg-config
|
|
, SystemConfiguration
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "duckscript_cli";
|
|
version = "0.8.16";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-H9lZIIJrE6onqGHw0l8Y58IW9EAcQ7eCHxgqqeSLgGY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
|
|
|
|
cargoSha256 = "sha256-DQw3DDOUo4ogf6PIY7/1U0uiyX8dpXE5D2P8QDdie9M=";
|
|
|
|
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";
|
|
};
|
|
}
|