8 target = lib.optionalString stdenv.isDarwin "apple-darwin";
10 # TODO build from source, currently compilation fails on darwin on snmalloc with
11 # ./mem/../ds/../pal/pal_apple.h:277:64: error: use of undeclared identifier 'kCCSuccess'
12 # reinterpret_cast<void*>(&result), sizeof(result)) != kCCSuccess)
14 # rustPlatform.buildRustPackage {
15 # pname = "roapi-http";
18 # src = fetchFromGitHub {
21 # rev = "roapi-http-v${version}";
22 # sha256 = "sha256-qHAO3h+TTCQQ7vdd4CoXVGfKZ1fIxTWKqbUNnRsJaok=";
25 # cargoHash = "sha256-qDJKC6MXeKerPFwJsNND3WkziFtGkTvCgVEsdPbBGAo=";
27 # buildAndTestSubdir = "roapi-http";
29 # nativeBuildInputs = [ cmake ];
31 stdenv.mkDerivation rec {
32 inherit pname version;
35 url = "https://github.com/roapi/roapi/releases/download/${pname}-v${version}/${pname}-${target}.tar.gz";
36 sha256 = "sha256-lv6BHg/LkrOlyq8D1udAYW8/AbZRb344YCcVnwo3ZHk=";
45 cp roapi-http $out/bin
49 description = "Create full-fledged APIs for static datasets without writing a single line of code.";
50 homepage = "https://roapi.github.io/docs/";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ happysalada ];
53 platforms = platforms.darwin;