blob: e101eea0cd3977c7775a2421624d3c3e7640f112 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, fetchurl
, gnugrep, coreutils, getopt
}:
stdenv.mkDerivation rec {
name = "bmake-${version}";
version = "20121212";
src = fetchurl {
# really wish this URL was versioned. if this changes for some
# update in the future, we'll have to backport those updates to
# any stable branches so builds can continue to work. :(
url = "http://www.crufty.net/ftp/pub/sjg/bmake.tar.gz";
sha256 = "0zp6yy27z52qb12bgm3hy1dwal2i570615pqqk71zwhcxfs4h2gw";
};
nativeBuildInputs =
[ gnugrep coreutils getopt
];
# unexport-env sets PATH to a bogus value that won't be
# possible to use inside the build sandbox. nuke that test;
# we could also re-construct the PATH variable a bit based on
# nativeBuildInputs, but not for now
patchPhase = ''
substituteInPlace ./unit-tests/Makefile.in \
--replace "unexport-env" ""
'';
meta = with stdenv.lib; {
description = "Portable version of NetBSD 'make'";
homepage = "http://www.crufty.net/help/sjg/bmake.html";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice ];
};
}
|