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

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

27 lines
752 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, file, qrencode, miniupnpc }:
stdenv.mkDerivation rec {
pname = "pshs";
2020-07-12 13:42:29 +02:00
version = "0.3.4";
src = fetchFromGitHub {
owner = "mgorny";
repo = "pshs";
rev = "v${version}";
2020-07-12 13:42:29 +02:00
sha256 = "1j8j4r0vsmp6226q6jdgf9bzhx3qk7vdliwaw7f8kcsrkndkg6p4";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
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";
2021-01-15 08:07:56 +01:00
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
};
}