nixpkgs-suyu/pkgs/development/tools/rust/duckscript/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
836 B
Nix
Raw Normal View History

2022-02-19 20:26:30 +01:00
{ lib
, stdenv
, fetchurl
, runCommand
, fetchCrate
, rustPlatform
, Security
, openssl
, pkg-config
, SystemConfiguration
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "duckscript_cli";
2022-10-17 16:42:30 +02:00
version = "0.8.16";
2022-02-19 20:26:30 +01:00
src = fetchCrate {
inherit pname version;
2022-10-17 16:42:30 +02:00
sha256 = "sha256-H9lZIIJrE6onqGHw0l8Y58IW9EAcQ7eCHxgqqeSLgGY=";
2022-02-19 20:26:30 +01:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration libiconv ];
2022-10-17 16:42:30 +02:00
cargoSha256 = "sha256-DQw3DDOUo4ogf6PIY7/1U0uiyX8dpXE5D2P8QDdie9M=";
2022-02-19 20:26:30 +01:00
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";
2022-02-19 20:26:30 +01:00
};
}