Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 41 lines 857 B view raw
1{ 2 lib, 3 stdenv, 4 fetchCrate, 5 rustPlatform, 6 Security, 7 openssl, 8 pkg-config, 9 SystemConfiguration, 10 libiconv, 11}: 12 13rustPlatform.buildRustPackage rec { 14 pname = "duckscript_cli"; 15 version = "0.11.1"; 16 17 src = fetchCrate { 18 inherit pname version; 19 hash = "sha256-afxzZkmmYnprUBquH681VHMDs3Co9C71chNoKbu6lEY="; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = 25 [ openssl ] 26 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 27 Security 28 SystemConfiguration 29 libiconv 30 ]; 31 32 cargoHash = "sha256-TX/Xi57fn85GjHc74icxhsQ6n7FwqzGIr3Qoc2o681E="; 33 34 meta = with lib; { 35 description = "Simple, extendable and embeddable scripting language"; 36 homepage = "https://github.com/sagiegurari/duckscript"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ mkg20001 ]; 39 mainProgram = "duck"; 40 }; 41}