2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, getopt
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bmake";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "20200902";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.crufty.net/ftp/pub/sjg/${pname}-${version}.tar.gz";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "1v1v81llsiy8qbpy38nml1x08dhrihwh040pqgwbwb9zy1108b08";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ getopt ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./bootstrap-fix.patch
|
|
|
|
./fix-unexport-env-test.patch
|
|
|
|
];
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|