Merge pull request #113921 from fabaff/bump-darkhttpd

darkhttpd: 1.12 -> 1.13
This commit is contained in:
Sandro 2021-02-22 00:11:09 +01:00 committed by GitHub
commit fb6f9b7eb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,27 @@
{ lib, stdenv, fetchurl }:
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "darkhttpd";
version = "1.12";
version = "1.13";
src = fetchurl {
url = "https://unix4lyfe.org/darkhttpd/${pname}-${version}.tar.bz2";
sha256 = "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155";
src = fetchFromGitHub {
owner = "emikulic";
repo = pname;
rev = "v${version}";
sha256 = "0w11xq160q9yyffv4mw9ncp1n0dl50d9plmwxb0yijaaxls9i4sk";
};
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin darkhttpd
install -Dm444 -t $out/share/doc/${pname} README
install -Dm444 -t $out/share/doc/${pname} README.md
head -n 18 darkhttpd.c > $out/share/doc/${pname}/LICENSE
runHook postInstall
'';
meta = with lib; {