Merge remote-tracking branch 'origin/master' into closure-size

This commit is contained in:
Luca Bruno
2015-11-25 21:37:30 +01:00
659 changed files with 46562 additions and 13611 deletions
@@ -0,0 +1,21 @@
{ stdenv, fetchurl, cmake, doxygen, zlib, openssl, bzip2, pkgconfig, libpthreadstubs }:
stdenv.mkDerivation rec {
name = "apt-cacher-ng-${version}";
version = "0.8.6";
src = fetchurl {
url = "http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_${version}.orig.tar.xz";
sha256 = "0044dfks8djl11fs28jj8894i4rq424xix3d3fkvzz2i6lnp8nr5";
};
NIX_LDFLAGS = "-lpthread";
buildInputs = [ doxygen cmake zlib openssl bzip2 pkgconfig libpthreadstubs ];
meta = {
description = "A caching proxy specialized for linux distribution files";
homepage = http://www.unix-ag.uni-kl.de/~bloch/acng/;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.makefu ];
};
}
+30
View File
@@ -0,0 +1,30 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "darkhttpd-${version}";
version = "1.11";
src = fetchurl {
url = "https://unix4lyfe.org/darkhttpd/${name}.tar.bz2";
sha256 = "0lbcv6pa82md0gqyyskxndf8hm58y76nrnkanc831ia3vm529bdg";
};
installPhase = ''
install -d "$out/bin"
# install darkhttpd
install -Dm755 "darkhttpd" "$out/bin/darkhttpd"
# install license
install -d "$out/share/licenses/darkhttpd"
head -n 18 darkhttpd.c > "$out/share/licenses/darkhttpd/LICENSE"
'';
meta = with stdenv.lib; {
description = "Small and secure static webserver";
homepage = http://dmr.ath.cx/net/darkhttpd/;
license = stdenv.lib.licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.bobvanderlinden ];
};
}
+27
View File
@@ -0,0 +1,27 @@
{ stdenv, fetchurl, openssl, shared_mime_info }:
stdenv.mkDerivation rec {
name = "webfs-${version}";
version = "1.21";
src = fetchurl {
url = "https://www.kraxel.org/releases/webfs/${name}.tar.gz";
sha256 = "98c1cb93473df08e166e848e549f86402e94a2f727366925b1c54ab31064a62a";
};
patches = [ ./ls.c.patch ];
buildInputs = [ openssl ];
makeFlags = [
"mimefile=${shared_mime_info}/share/mime/globs"
"prefix=$(out)"
];
meta = with stdenv.lib; {
description = "HTTP server for purely static content";
homepage = http://linux.bytesex.org/misc/webfs.html;
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ zimbatm ];
};
}
+13
View File
@@ -0,0 +1,13 @@
# Source: homebrew
# https://raw.githubusercontent.com/Homebrew/patches/0518a6d1/webfs/patch-ls.c
--- ./ls.c.orig Fri Oct 15 14:20:50 2004
+++ ./ls.c Fri Oct 15 14:21:13 2004
@@ -160,7 +160,7 @@
return buf;
}
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
static void strmode(mode_t mode, char *dest)
{
static const char *rwx[] = {