diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-10-07 00:09:37 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-10-07 00:09:37 +0200 |
commit | a85dcf4a00c1ac354eda3b84209b8fa6b2133259 (patch) | |
tree | 16bbf46e3cd5d7ea259783ee8b1ea8d5c7048e0d /pkgs/development/web | |
parent | 4b2ce84872a0903b9800d3ed23915f48ecedc565 (diff) | |
parent | 46a9e805efeee40d360605fa5987866ca45fed23 (diff) | |
download | nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.tar nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.tar.gz nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.tar.bz2 nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.tar.lz nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.tar.xz nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.tar.zst nixlib-a85dcf4a00c1ac354eda3b84209b8fa6b2133259.zip |
Merge remote-tracking branch 'origin/master' into staging
Conflicts: pkgs/development/libraries/libav/default.nix pkgs/shells/bash/bash-4.2-patches.nix pkgs/stdenv/generic/default.nix
Diffstat (limited to 'pkgs/development/web')
-rw-r--r-- | pkgs/development/web/grails/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/web/grails/default.nix b/pkgs/development/web/grails/default.nix new file mode 100644 index 000000000000..b1ff7064003d --- /dev/null +++ b/pkgs/development/web/grails/default.nix @@ -0,0 +1,52 @@ +{ stdenv, fetchurl, unzip +# If jdkPath is null, require JAVA_HOME in runtime environment, else store +# JAVA_HOME=${jdkPath} into grails. +, jdkPath ? null +, coreutils, ncurses, gnused, gnugrep # for purity +}: + +let + binpath = stdenv.lib.makeSearchPath "bin" + ([ coreutils ncurses gnused gnugrep ] + ++ stdenv.lib.optional (jdkPath != null) jdkPath); +in +stdenv.mkDerivation rec { + name = "grails-2.4.3"; + + src = fetchurl { + url = "http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/${name}.zip"; + sha256 = "0lqkv0hsiiqa36pfnq5wv7s7nsp9xadmh1ri039bn0llpfck4742"; + }; + + buildInputs = [ unzip ]; + + buildPhase = "true"; + + installPhase = '' + mkdir -p "$out" + cp -vr . "$out" + # Remove (for now) uneeded Windows .bat files + rm -f "$out"/bin/*.bat + # Improve purity + sed -i -e '2iPATH=${binpath}:\$PATH' "$out"/bin/grails + '' + stdenv.lib.optionalString (jdkPath != null) '' + # Inject JDK path into grails + sed -i -e '2iJAVA_HOME=${jdkPath}' "$out"/bin/grails + ''; + + preferLocalBuild = true; + + meta = with stdenv.lib; { + description = "Full stack, web application framework for the JVM"; + longDescription = '' + Grails is an Open Source, full stack, web application framework for the + JVM. It takes advantage of the Groovy programming language and convention + over configuration to provide a productive and stream-lined development + experience. + ''; + homepage = http://grails.org/; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} |