nixpkgs-suyu/pkgs/servers/http/pshs/default.nix

27 lines
767 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
stdenv.mkDerivation rec {
name = "pshs-${version}";
version = "0.3.3";
src = fetchFromGitHub {
owner = "mgorny";
repo = "pshs";
rev = "v${version}";
sha256 = "04l03myh99npl78y8nss053gnc7k8q60vdbdpml19sshmwaw3fgi";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libevent file qrencode miniupnpc ];
2016-01-18 04:42:02 +01:00
# SSL requires libevent at 2.1 with ssl support
2018-07-25 23:44:21 +02:00
configureFlags = [ "--disable-ssl" ];
meta = {
description = "Pretty small HTTP server - a command-line tool to share files";
homepage = https://github.com/mgorny/pshs;
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux;
};
}