Merge pull request #5783 from ragnard/clojure-boot

Clojure: boot: Add derivation for boot build tooling
This commit is contained in:
Pascal Wittmann 2015-01-30 10:46:45 +01:00
commit c43c0bbfd5
4 changed files with 43 additions and 0 deletions

View File

@ -141,6 +141,7 @@
pSub = "Pascal Wittmann <mail@pascal-wittmann.de>";
puffnfresh = "Brian McKenna <brian@brianmckenna.org>";
qknight = "Joachim Schiele <js@lastlog.de>";
ragge = "Ragnar Dahlen <r.dahlen@gmail.com>";
raskin = "Michael Raskin <7c6f434c@mail.ru>";
redbaron = "Maxim Ivanov <ivanov.maxim@gmail.com>";
refnil = "Martin Lavoie <broemartino@gmail.com>";

View File

@ -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"

View File

@ -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 ];
};
}

View File

@ -659,6 +659,8 @@ let
boost-build = callPackage ../development/tools/boost-build { };
boot = callPackage ../development/tools/build-managers/boot { };
bootchart = callPackage ../tools/system/bootchart { };
boxfs = callPackage ../tools/filesystems/boxfs { };