mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Merge pull request #11154 from bobvanderlinden/darkhttpd
darkhttpd: init at 1.11
This commit is contained in:
commit
4e3ab37e06
30
pkgs/servers/http/darkhttpd/default.nix
Normal file
30
pkgs/servers/http/darkhttpd/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -1203,6 +1203,8 @@ let
|
||||
|
||||
dar = callPackage ../tools/archivers/dar { };
|
||||
|
||||
darkhttpd = callPackage ../servers/http/darkhttpd { };
|
||||
|
||||
darkstat = callPackage ../tools/networking/darkstat { };
|
||||
|
||||
davfs2 = callPackage ../tools/filesystems/davfs2 {
|
||||
|
Loading…
Reference in New Issue
Block a user