diff options
author | Marc Weber <marco-oweber@gmx.de> | 2010-05-08 21:51:47 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2010-05-08 21:51:47 +0000 |
commit | 8d9af6d5969e1831ae50603a0f31cacad614c47a (patch) | |
tree | 8999b5dfd77c85cb424e324fe439588022d3c852 /pkgs/development/tools/build-managers | |
parent | c82a9ac9214cf73f9b920b9160959afd06b3a1e4 (diff) |
patch provided by David Brown adding simple-build-tool which builds Scala packages
svn path=/nixpkgs/trunk/; revision=21671
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r-- | pkgs/development/tools/build-managers/simple-build-tool/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/simple-build-tool/default.nix b/pkgs/development/tools/build-managers/simple-build-tool/default.nix new file mode 100644 index 0000000000000..218957ae360db --- /dev/null +++ b/pkgs/development/tools/build-managers/simple-build-tool/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl }: + +# Depends on a JRE at runtime. + +let + version = "0.7.3"; +in + stdenv.mkDerivation rec { + name = "simple-build-tool-${version}"; + src = fetchurl { + url = "http://simple-build-tool.googlecode.com/files/sbt-launch-${version}.jar"; + sha256 = "1nciifzf00cs54a4h57a7v1hyklm5vgln0sscmz5kzv96ggphs6k"; + }; + + installPhase = '' + mkdir -pv "$out/lib/java" + cp $src "$out/lib/java/sbt-launch-${version}.jar" + mkdir -p "$out/bin" + cat > "$out/bin/sbt" <<EOF + #! /bin/sh + exec java -jar $out/lib/java/sbt-launch-${version}.jar "\$@" + EOF + chmod u+x "$out/bin/sbt" + ''; + + phases = "installPhase"; + + meta = { + description = "A build tool for Scala"; + longDescription = '' + sbt is a simple build tool for Scala projects that aims to do the + basics well. + + This package is the sbt launcher which automatically manages + and downloads dependencies, including the SBT package and the + Scala compiler. + ''; + homepage = http://code.google.com/p/simple-build-tool/; + license = "bsd"; + }; + } |