mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
27 lines
759 B
Nix
27 lines
759 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pshs";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mgorny";
|
|
repo = "pshs";
|
|
rev = "v${version}";
|
|
sha256 = "1j8j4r0vsmp6226q6jdgf9bzhx3qk7vdliwaw7f8kcsrkndkg6p4";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ libevent file qrencode miniupnpc ];
|
|
|
|
# SSL requires libevent at 2.1 with ssl support
|
|
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;
|
|
};
|
|
}
|