summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/du/duckscript/package.nix
blob: e769cf55f975cbcb4e0ed65412c4a726be0d59a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  stdenv,
  fetchCrate,
  rustPlatform,
  openssl,
  pkg-config,
  libiconv,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "duckscript_cli";
  version = "0.11.1";

  src = fetchCrate {
    inherit (finalAttrs) pname version;
    hash = "sha256-afxzZkmmYnprUBquH681VHMDs3Co9C71chNoKbu6lEY=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    openssl
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    libiconv
  ];

  cargoHash = "sha256-ft6EUajAj+Zw3cEhdajwwHAaMaUf+/vtTuUYni8E+o0=";

  meta = {
    description = "Simple, extendable and embeddable scripting language";
    homepage = "https://github.com/sagiegurari/duckscript";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ mkg20001 ];
    mainProgram = "duck";
  };
})