about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAustin Seipp <as@fastly.com>2019-06-15 22:51:00 -0500
committerAustin Seipp <aseipp@pobox.com>2019-06-15 22:46:14 -0700
commitebb3f4d4284edb104e7893f40550bdb0a0dc26b2 (patch)
tree6d88a7be91953be7b3b5d8b198ae13630414c5f8
parent453cc362c89162e6143cf6bfe4210565c61f4aa7 (diff)
bmake: init at 20121212
Signed-off-by: Austin Seipp <as@fastly.com>
-rw-r--r--pkgs/development/tools/build-managers/bmake/default.nix37
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/bmake/default.nix b/pkgs/development/tools/build-managers/bmake/default.nix
new file mode 100644
index 0000000000000..e101eea0cd397
--- /dev/null
+++ b/pkgs/development/tools/build-managers/bmake/default.nix
@@ -0,0 +1,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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 605d5bc843c75..cd4ed92b45ecf 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1095,6 +1095,8 @@ in
 
   bmon = callPackage ../tools/misc/bmon { };
 
+  bmake = callPackage ../development/tools/build-managers/bmake { };
+
   bochs = callPackage ../applications/virtualization/bochs { };
 
   bubblewrap = callPackage ../tools/admin/bubblewrap { };