nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation {
4 pname = "micro-httpd";
5 version = "20140814";
6
7 src = fetchurl {
8 url = "https://acme.com/software/micro_httpd/micro_httpd_14Aug2014.tar.gz";
9 sha256 = "0mlm24bi31s0s8w55i0sysv2nc1n2x4cfp6dm47slz49h2fz24rk";
10 };
11
12 preBuild = ''
13 makeFlagsArray=(BINDIR="$out/bin" MANDIR="$out/share/man/man8")
14 mkdir -p $out/bin
15 mkdir -p $out/share/man/man8
16 '';
17
18 meta = with lib; {
19 homepage = "http://acme.com/software/micro_httpd/";
20 description = "A really small HTTP server";
21 license = licenses.bsd2;
22 platforms = platforms.unix;
23 maintainers = with maintainers; [ copumpkin ];
24 mainProgram = "micro_httpd";
25 };
26}
27