53b88f966e
With this change, nativeBuildInputs = [ bmake ]; will cause bmake to be used instead of GNU make, but with the usual stdenv API. Packages using bmake will no longer need to implement their own {build,check,dist}Phase.
30 lines
693 B
Nix
30 lines
693 B
Nix
{ lib, stdenv, fetchurl
|
|
, getopt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bmake";
|
|
version = "20200902";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.crufty.net/ftp/pub/sjg/${pname}-${version}.tar.gz";
|
|
sha256 = "1v1v81llsiy8qbpy38nml1x08dhrihwh040pqgwbwb9zy1108b08";
|
|
};
|
|
|
|
nativeBuildInputs = [ getopt ];
|
|
|
|
patches = [
|
|
./bootstrap-fix.patch
|
|
./fix-unexport-env-test.patch
|
|
];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|