2016-07-14 10:52:13 +02:00
|
|
|
{ stdenv, fetchurl, jre8, unzip }:
|
2016-02-25 10:25:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "galen";
|
2018-02-26 15:38:25 +01:00
|
|
|
version = "2.3.6";
|
2016-02-25 10:25:31 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2016-07-14 10:52:13 +02:00
|
|
|
inherit jre8;
|
2016-02-25 10:25:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-03-08 14:31:10 +01:00
|
|
|
url = "https://github.com/galenframework/galen/releases/download/galen-${version}/galen-bin-${version}.zip";
|
2018-02-26 15:38:25 +01:00
|
|
|
sha256 = "0kndib3slj7mdvhd36fxin5q87cnsz4hs135yxgjx0nccxq4f2h5";
|
2016-02-25 10:25:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-07-14 10:52:13 +02:00
|
|
|
cat galen | sed -e "s,java,$jre8/bin/java," > $out/bin/galen
|
2016-02-25 10:25:31 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|