uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
29
pkgs/servers/http/thttpd/default.nix
Normal file
29
pkgs/servers/http/thttpd/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "thttpd";
|
||||
version = "2.29";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://acme.com/software/thttpd/${pname}-${version}.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 = lib.licenses.bsd2;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue