{ stdenv, fetchurl , getopt }: stdenv.mkDerivation rec { pname = "bmake"; version = "20200606"; src = fetchurl { url = "http://www.crufty.net/ftp/pub/sjg/${pname}-${version}.tar.gz"; sha256 = "00kh1g8z6808ylbfcn9afpb0xmb99k302dfdsmyx1rsn65xs58v7"; }; nativeBuildInputs = [ getopt ]; patches = [ ./bootstrap-fix.patch ./fix-unexport-env-test.patch ]; 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 ]; }; }