diff options
author | Shea Levy <shea@shealevy.com> | 2014-01-15 01:06:04 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-01-15 01:06:04 -0500 |
commit | c056a69fdda8308ce1fb7548aab0350ea40fad2e (patch) | |
tree | 7362662ac06ff0e5b5fba6ac2b75c24b053a773a /pkgs/development/compilers/openjdk-darwin | |
parent | 446c144b1a447c470e97db79225695806e3497b8 (diff) | |
download | nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.tar nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.tar.gz nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.tar.bz2 nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.tar.lz nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.tar.xz nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.tar.zst nixlib-c056a69fdda8308ce1fb7548aab0350ea40fad2e.zip |
darwin openjdk: set jre attribute.
Fixes tarball Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs/development/compilers/openjdk-darwin')
-rw-r--r-- | pkgs/development/compilers/openjdk-darwin/default.nix | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/development/compilers/openjdk-darwin/default.nix b/pkgs/development/compilers/openjdk-darwin/default.nix index 1e74acfae724..ff9f12f80232 100644 --- a/pkgs/development/compilers/openjdk-darwin/default.nix +++ b/pkgs/development/compilers/openjdk-darwin/default.nix @@ -1,16 +1,19 @@ {stdenv, fetchurl, ...}: +let +jdk = stdenv.mkDerivation { + name = "openjdk6-b16-24_apr_2009-r1"; -stdenv.mkDerivation { - name = "openjdk6-b16-24_apr_2009-r1"; + src = fetchurl { + url = http://hg.bikemonkey.org/archive/openjdk6_darwin/openjdk6-b16-24_apr_2009-r1.tar.bz2; + sha256 = "14pbv6jjk95k7hbgiwyvjdjv8pccm7m8a130k0q7mjssf4qmpx1v"; + }; - src = fetchurl { - url = http://hg.bikemonkey.org/archive/openjdk6_darwin/openjdk6-b16-24_apr_2009-r1.tar.bz2; - sha256 = "14pbv6jjk95k7hbgiwyvjdjv8pccm7m8a130k0q7mjssf4qmpx1v"; - }; + installPhase = '' + mkdir -p $out + cp -vR * $out/ + ''; - installPhase = '' - mkdir -p $out - cp -vR * $out/ - ''; + passthru.jre = jdk; -} + }; +in jdk |