about summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorSergii Paryzhskyi <parizhskiy@gmail.com>2017-03-15 22:17:23 +0100
committerzimbatm <zimbatm@zimbatm.com>2017-03-15 21:17:23 +0000
commit18a272ef756ee6901cce4726e97a9ddb495b15ad (patch)
treeaabff354b5ac81b3a2802ac26a444d06b2d5c00f /pkgs/development/tools/build-managers
parentc8ddac7c767b9d9fe1e5fcea5062a08c4c7a96b4 (diff)
downloadnixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.tar
nixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.tar.gz
nixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.tar.bz2
nixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.tar.lz
nixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.tar.xz
nixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.tar.zst
nixlib-18a272ef756ee6901cce4726e97a9ddb495b15ad.zip
sbt-0.12.4: add an older stable version (#23933)
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r--pkgs/development/tools/build-managers/sbt/0.12.4.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/sbt/0.12.4.nix b/pkgs/development/tools/build-managers/sbt/0.12.4.nix
new file mode 100644
index 000000000000..9c02fcd0b3fb
--- /dev/null
+++ b/pkgs/development/tools/build-managers/sbt/0.12.4.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, jre }:
+
+stdenv.mkDerivation rec {
+  name = "sbt-${version}";
+  version = "0.12.14";
+
+  src = fetchurl {
+    url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
+    sha256 = "5907af5a3db5e9090024c91e8b6189cd2143841b08c4688542a2efbc9023ac1a";
+  };
+
+  patchPhase = ''
+    echo -java-home ${jre.home} >>conf/sbtopts
+  '';
+
+  installPhase = ''
+    mkdir -p $out/share/sbt $out/bin
+    cp -ra . $out/share/sbt
+    ln -s $out/share/sbt/bin/sbt $out/bin/
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://www.scala-sbt.org/;
+    license = licenses.bsd3;
+    description = "A build tool for Scala, Java and more";
+    maintainers = with maintainers; [ heel ];
+    platforms = platforms.unix;
+  };
+}