nixpkgs/pkgs/servers/microserver/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
754 B
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
2020-09-11 09:39:09 +00:00
rustPlatform.buildRustPackage rec {
pname = "microserver";
2022-07-29 00:02:18 +00:00
version = "0.2.1";
2020-09-11 09:39:09 +00:00
src = fetchFromGitHub {
owner = "robertohuertasm";
repo = "microserver";
rev = "v${version}";
2022-07-29 00:02:18 +00:00
sha256 = "sha256-VgzOdJ1JLe0acjRYvaysCPox5acFmc4VD2f6HZWxT8M=";
2020-09-11 09:39:09 +00:00
};
2022-07-29 00:02:18 +00:00
cargoSha256 = "sha256-JGsMtlWuww1rYE4w6i2VlyD6gGHqnLehLDZmW57R+Fo=";
2020-09-11 09:39:09 +00:00
2021-01-15 07:07:56 +00:00
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
2020-11-26 18:23:03 +00:00
meta = with lib; {
2020-09-11 09:39:09 +00:00
homepage = "https://github.com/robertohuertasm/microserver";
description = "Simple ad-hoc server with SPA support";
maintainers = with maintainers; [ flosse ];
license = licenses.mit;
2023-11-27 01:17:53 +00:00
mainProgram = "microserver";
2020-09-11 09:39:09 +00:00
};
}