2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2019-06-16 20:24:15 +01:00
|
|
|
, getopt
|
2019-06-16 04:51:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bmake";
|
2020-09-07 16:20:05 +01:00
|
|
|
version = "20200902";
|
2019-06-16 04:51:00 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://www.crufty.net/ftp/pub/sjg/${pname}-${version}.tar.gz";
|
2020-09-07 16:20:05 +01:00
|
|
|
sha256 = "1v1v81llsiy8qbpy38nml1x08dhrihwh040pqgwbwb9zy1108b08";
|
2019-06-16 04:51:00 +01:00
|
|
|
};
|
|
|
|
|
2019-06-16 20:24:15 +01:00
|
|
|
nativeBuildInputs = [ getopt ];
|
2019-06-16 04:51:00 +01:00
|
|
|
|
2019-06-16 20:24:15 +01:00
|
|
|
patches = [
|
|
|
|
./bootstrap-fix.patch
|
|
|
|
./fix-unexport-env-test.patch
|
|
|
|
];
|
2019-06-16 04:51:00 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-06-16 04:51:00 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|