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