summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/galen
diff options
context:
space:
mode:
authorTobias Pflug <tobias.pflug@holidaycheck.com>2016-02-25 10:25:31 +0100
committerTobias Pflug <tobias.pflug@holidaycheck.com>2016-02-25 10:25:31 +0100
commit4304419443532ad8da4edd9ebae58f6b47123ce4 (patch)
treec82090203b2cd1f3b3991bb815b318db3a21f98a /pkgs/development/tools/galen
parente053971d81498526d0cdfdfdc0f03fc6d6050142 (diff)
galen init at 2.2.1
Diffstat (limited to 'pkgs/development/tools/galen')
-rw-r--r--pkgs/development/tools/galen/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/galen/default.nix b/pkgs/development/tools/galen/default.nix
new file mode 100644
index 000000000000..169c8fdd68a0
--- /dev/null
+++ b/pkgs/development/tools/galen/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl, jdk, unzip }:
+
+stdenv.mkDerivation rec {
+ pname = "galen";
+ version = "2.2.1";
+ name = "${pname}-${version}";
+
+ inherit jdk;
+
+ src = fetchurl {
+ url = "https://github.com/galenframework/galen/releases/download/galen-2.2.1/galen-bin-${version}.zip";
+ sha256 = "0zwrh3bxcgkwip6z9lvy3hn53kfr99cdij64c57ff8d95xilclhb";
+ };
+
+ buildInputs = [ unzip ];
+ phases = [ "unpackPhase" "buildPhase" "installPhase" ];
+
+ buildPhase = ''
+ mkdir -p $out/bin
+ '';
+
+ installPhase = ''
+ cat galen | sed -e "s,java,$jdk/bin/java," > $out/bin/galen
+ chmod +x $out/bin/galen
+ cp galen.jar $out/bin
+ '';
+
+ meta = with stdenv.lib; {
+ homepage = http://galenframework.com;
+ description = "Automated layout testing for websites";
+ license = licenses.asl20;
+ maintainers = [ ];
+ platforms = platforms.linux ++ platforms.darwin;
+ };
+}