forked from mirrors/nixpkgs
Merge pull request #179364 from snapdgn/binserve
binserve: init at 0.2.0
This commit is contained in:
commit
c30f66c6c7
|
@ -11762,6 +11762,12 @@
|
||||||
githubId = 602439;
|
githubId = 602439;
|
||||||
name = "Serguei Narojnyi";
|
name = "Serguei Narojnyi";
|
||||||
};
|
};
|
||||||
|
snapdgn = {
|
||||||
|
email = "snapdgn@proton.me";
|
||||||
|
name = "Nitish Kumar";
|
||||||
|
github = "snapdgn";
|
||||||
|
githubId = 85608760;
|
||||||
|
};
|
||||||
snicket2100 = {
|
snicket2100 = {
|
||||||
email = "57048005+snicket2100@users.noreply.github.com";
|
email = "57048005+snicket2100@users.noreply.github.com";
|
||||||
github = "snicket2100";
|
github = "snicket2100";
|
||||||
|
|
2273
pkgs/servers/binserve/Cargo.lock
generated
Normal file
2273
pkgs/servers/binserve/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
37
pkgs/servers/binserve/default.nix
Normal file
37
pkgs/servers/binserve/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "binserve";
|
||||||
|
version = "0.2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mufeedvh";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-Chm2xPB0BrLXSZslg9wnbDyHSJRQAvOtpH0Rw6w1q1s=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
CoreServices
|
||||||
|
];
|
||||||
|
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
postPatch = ''
|
||||||
|
cp ${./Cargo.lock} Cargo.lock
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A fast production-ready static web server";
|
||||||
|
homepage = "https://github.com/mufeedvh/binserve";
|
||||||
|
longDescription = ''
|
||||||
|
A fast production-ready static web server with TLS
|
||||||
|
(HTTPS), routing, hot reloading, caching, templating, and security in a
|
||||||
|
single-binary you can set up with zero code
|
||||||
|
'';
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ snapdgn ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -275,6 +275,10 @@ with pkgs;
|
||||||
|
|
||||||
bingo = callPackage ../development/tools/bingo {};
|
bingo = callPackage ../development/tools/bingo {};
|
||||||
|
|
||||||
|
binserve = callPackage ../servers/binserve {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
bootstrap-studio = callPackage ../development/web/bootstrap-studio {};
|
bootstrap-studio = callPackage ../development/web/bootstrap-studio {};
|
||||||
|
|
||||||
breakpad = callPackage ../development/misc/breakpad { };
|
breakpad = callPackage ../development/misc/breakpad { };
|
||||||
|
|
Loading…
Reference in a new issue