Merge pull request #5783 from ragnard/clojure-boot
Clojure: boot: Add derivation for boot build tooling
This commit is contained in:
commit
c43c0bbfd5
@ -141,6 +141,7 @@
|
|||||||
pSub = "Pascal Wittmann <mail@pascal-wittmann.de>";
|
pSub = "Pascal Wittmann <mail@pascal-wittmann.de>";
|
||||||
puffnfresh = "Brian McKenna <brian@brianmckenna.org>";
|
puffnfresh = "Brian McKenna <brian@brianmckenna.org>";
|
||||||
qknight = "Joachim Schiele <js@lastlog.de>";
|
qknight = "Joachim Schiele <js@lastlog.de>";
|
||||||
|
ragge = "Ragnar Dahlen <r.dahlen@gmail.com>";
|
||||||
raskin = "Michael Raskin <7c6f434c@mail.ru>";
|
raskin = "Michael Raskin <7c6f434c@mail.ru>";
|
||||||
redbaron = "Maxim Ivanov <ivanov.maxim@gmail.com>";
|
redbaron = "Maxim Ivanov <ivanov.maxim@gmail.com>";
|
||||||
refnil = "Martin Lavoie <broemartino@gmail.com>";
|
refnil = "Martin Lavoie <broemartino@gmail.com>";
|
||||||
|
13
pkgs/development/tools/build-managers/boot/builder.sh
Normal file
13
pkgs/development/tools/build-managers/boot/builder.sh
Normal 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"
|
27
pkgs/development/tools/build-managers/boot/default.nix
Normal file
27
pkgs/development/tools/build-managers/boot/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -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…
x
Reference in New Issue
Block a user