Clojure: boot: Add new derivation for boot build tooling
This commit is contained in:
parent
85ba5c7bc9
commit
aaa6d79300
|
@ -0,0 +1,13 @@
|
||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
boot_bin=$out/bin/boot
|
||||||
|
|
||||||
|
mkdir -pv $(dirname $boot_bin)
|
||||||
|
cp -v $src $boot_bin
|
||||||
|
chmod -v 755 $boot_bin
|
||||||
|
|
||||||
|
patchShebangs $boot_bin
|
||||||
|
|
||||||
|
wrapProgram $boot_bin \
|
||||||
|
--set JAVA_HOME "${jdk}" \
|
||||||
|
--prefix PATH ":" "${jdk}/bin"
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ stdenv, fetchurl, makeWrapper, jdk }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "2.0.0-rc8";
|
||||||
|
name = "boot-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/boot-clj/boot/releases/download/${version}/boot.sh";
|
||||||
|
sha256 = "1jqj04f33prb6nqsv7mffwdnz47ppi3szsbdzphjx8xzz394nl7j";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit jdk;
|
||||||
|
|
||||||
|
builder = ./builder.sh;
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ jdk ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Build tooling for Clojure";
|
||||||
|
homepage = http://boot-clj.com/;
|
||||||
|
license = stdenv.lib.licenses.epl10;
|
||||||
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.ragge ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -659,6 +659,8 @@ let
|
||||||
|
|
||||||
boost-build = callPackage ../development/tools/boost-build { };
|
boost-build = callPackage ../development/tools/boost-build { };
|
||||||
|
|
||||||
|
boot = callPackage ../development/tools/build-managers/boot { };
|
||||||
|
|
||||||
bootchart = callPackage ../tools/system/bootchart { };
|
bootchart = callPackage ../tools/system/bootchart { };
|
||||||
|
|
||||||
boxfs = callPackage ../tools/filesystems/boxfs { };
|
boxfs = callPackage ../tools/filesystems/boxfs { };
|
||||||
|
|
Loading…
Reference in New Issue