mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
Merge pull request #113921 from fabaff/bump-darkhttpd
darkhttpd: 1.12 -> 1.13
This commit is contained in:
commit
fb6f9b7eb0
1 changed files with 13 additions and 6 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue