mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
30 lines
801 B
Nix
30 lines
801 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "darkhttpd";
|
|
version = "1.12";
|
|
|
|
src = fetchurl {
|
|
url = "https://unix4lyfe.org/darkhttpd/${pname}-${version}.tar.bz2";
|
|
sha256 = "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
# 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 = https://unix4lyfe.org/darkhttpd/;
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bobvanderlinden ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|