pshs: 0.3 -> 0.3.1, fix source location

This commit is contained in:
Tuomas Tynkkynen 2017-03-10 01:20:22 +02:00
parent 74f92e9556
commit fe20a32751

View File

@ -1,24 +1,27 @@
{ stdenv, fetchurl, pkgconfig, libevent, file, qrencode, miniupnpc }: { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
let stdenv.mkDerivation rec {
version = "0.3";
in stdenv.mkDerivation {
name = "pshs-${version}"; name = "pshs-${version}";
version = "0.3.1";
src = fetchurl { src = fetchFromGitHub {
url = "https://www.bitbucket.org/mgorny/pshs/downloads/pshs-${version}.tar.bz2"; owner = "mgorny";
sha256 = "0qvy1m9jmbjhbihs1qr9nasbaajl3n0x8bgz1vw9xvpkqymx5i63"; repo = "pshs";
rev = "v${version}";
sha256 = "18mhxdjlyr21gghzkrrlp0imicb6bqf741p0a21c2rkvs4bv8c1w";
}; };
buildInputs = [ pkgconfig libevent file qrencode miniupnpc ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libevent file qrencode miniupnpc ];
# SSL requires libevent at 2.1 with ssl support # SSL requires libevent at 2.1 with ssl support
configureFlags = "--disable-ssl"; configureFlags = "--disable-ssl";
meta = { meta = {
description = "Pretty small HTTP server - a command-line tool to share files"; description = "Pretty small HTTP server - a command-line tool to share files";
homepage = "https://bitbucket.org/mgorny/pshs/"; homepage = "https://github.com/mgorny/pshs";
license = stdenv.lib.licenses.bsd3; license = stdenv.lib.licenses.bsd3;
maintainers = [ stdenv.lib.maintainers.eduarrrd ]; maintainers = [ stdenv.lib.maintainers.eduarrrd ];
platforms = stdenv.lib.platforms.linux;
}; };
} }