A => default.nix +44 -0
@@ 0,0 1,44 @@
+{ pkgs ? import <nixpkgs> {},
+ impureCache ? false }:
+
+pkgs.stdenv.mkDerivation {
+ name = "libgdx-utils";
+ src = ./.;
+
+ buildInputs = with pkgs; [
+ openjdk8
+ ];
+
+ buildPhase = ''
+ export GRADLE_USER_HOME=${if impureCache then "/tmp/.gradle" else ".gradle"}
+ ./gradlew build --no-daemon
+ '';
+
+ installPhase = ''
+ install_project() {
+ local build=$1
+ local name=$2
+
+ mkdir -p $out/nix-support
+
+ local doc=$out/share/doc/$name
+ mkdir -p $doc
+ mv $build/docs/javadoc/ $doc
+ mv $build/libs/*-javadoc.jar $doc
+ echo file $doc/*-javadoc.jar >> $out/nix-support/hydra-build-products
+
+ local src=$out/src
+ mkdir -p $src
+ mv $build/libs/*-sources.jar $src
+ echo file $src/*-sources.jar >> $out/nix-support/hydra-build-products
+
+ local lib=$out/lib
+ mkdir -p $lib
+ mv $build/libs/libgdx-utils-*.jar $lib
+ echo file binary-dist $lib/libgdx-utils-*.jar >> $out/nix-support/hydra-build-products
+ }
+
+ install_project build libgdx-utils
+ install_project box2d/build libgdx-utils-box2d
+ '';
+}
A => gradle.properties +1 -0
@@ 0,0 1,1 @@
+org.gradle.jvmargs=-Dfile.encoding=UTF-8
M gradle/javadoc-args +1 -0
@@ 1,3 1,4 @@
+-encoding UTF-8
-private
-author
-version