forked from mirrors/nixpkgs
e26e99b64c
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/thttpd/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/hbab4sxrd03rn29fr2hzxcqhdb11ac7r-thttpd-2.29/bin/htpasswd had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/hbab4sxrd03rn29fr2hzxcqhdb11ac7r-thttpd-2.29/bin/makeweb had a zero exit code or showed the expected version - /nix/store/hbab4sxrd03rn29fr2hzxcqhdb11ac7r-thttpd-2.29/bin/syslogtocern passed the binary check. - /nix/store/hbab4sxrd03rn29fr2hzxcqhdb11ac7r-thttpd-2.29/bin/thttpd passed the binary check. - 2 of 4 passed binary check by having a zero exit code. - 0 of 4 passed binary check by having the new version present in output. - found 2.29 with grep in /nix/store/hbab4sxrd03rn29fr2hzxcqhdb11ac7r-thttpd-2.29 - directory tree listing: https://gist.github.com/e0eb71192cc958ded9003250a4a4f65b - du listing: https://gist.github.com/890be31bcaa84f99915896503cde2679
30 lines
740 B
Nix
30 lines
740 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "thttpd-${version}";
|
|
version = "2.29";
|
|
|
|
src = fetchurl {
|
|
url = "http://acme.com/software/thttpd/${name}.tar.gz";
|
|
sha256 = "15x3h4b49wgfywn82i3wwbf38mdns94mbi4ma9xiwsrjv93rzh4r";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
|
|
sed -i -e 's/chmod 2755/chmod 755/' extras/Makefile.in
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p "$out/man/man1"
|
|
sed -i -e 's/-o bin -g bin *//' Makefile
|
|
sed -i -e '/chgrp/d' extras/Makefile
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tiny/turbo/throttling HTTP server";
|
|
homepage = http://www.acme.com/software/thttpd/;
|
|
license = stdenv.lib.licenses.bsd2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|