1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

roapi-http: init at 0.6.0

This commit is contained in:
happysalada 2022-04-02 12:03:41 -04:00 committed by Yt
parent 459d04132d
commit f4edf20487
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{ stdenv
, lib
, fetchurl
}:
let
pname = "roapi-http";
version = "0.6.0";
target = if stdenv.isDarwin then "apple-darwin" else "";
in
# TODO build from source, currently compilation fails on darwin on snmalloc with
# ./mem/../ds/../pal/pal_apple.h:277:64: error: use of undeclared identifier 'kCCSuccess'
# reinterpret_cast<void*>(&result), sizeof(result)) != kCCSuccess)
#
# rustPlatform.buildRustPackage {
# pname = "roapi-http";
# inherit version;
# src = fetchFromGitHub {
# owner = "roapi";
# repo = "roapi";
# rev = "roapi-http-v${version}";
# sha256 = "sha256-qHAO3h+TTCQQ7vdd4CoXVGfKZ1fIxTWKqbUNnRsJaok=";
# };
# cargoSha256 = "sha256-qDJKC6MXeKerPFwJsNND3WkziFtGkTvCgVEsdPbBGAo=";
# buildAndTestSubdir = "roapi-http";
# nativeBuildInputs = [ cmake ];
stdenv.mkDerivation rec {
inherit pname version;
src = fetchurl {
url = "https://github.com/roapi/roapi/releases/download/${pname}-v${version}/${pname}-${target}.tar.gz";
sha256 = "sha256-lv6BHg/LkrOlyq8D1udAYW8/AbZRb344YCcVnwo3ZHk=";
};
dontUnpack = true;
dontConfigure = true;
dontBuild = true;
installPhase = ''
tar xvzf $src
mkdir -p "$out/bin"
cp roapi-http $out/bin
'';
meta = with lib; {
description = "Create full-fledged APIs for static datasets without writing a single line of code. ";
homepage = "https://roapi.github.io/docs/";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
platforms = platforms.darwin;
};
}

View file

@ -24362,6 +24362,8 @@ with pkgs;
rime-data = callPackage ../data/misc/rime-data { };
roapi-http = callPackage ../servers/roapi/http.nix { };
rose-pine-gtk-theme = callPackage ../data/themes/rose-pine-gtk { };
route159 = callPackage ../data/fonts/route159 { };