2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre8, unzip }:
|
2016-02-25 09:25:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "galen";
|
2019-04-30 22:09:45 +00:00
|
|
|
version = "2.4.4";
|
2016-02-25 09:25:31 +00:00
|
|
|
|
2016-07-14 08:52:13 +00:00
|
|
|
inherit jre8;
|
2016-02-25 09:25:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-03-08 13:31:10 +00:00
|
|
|
url = "https://github.com/galenframework/galen/releases/download/galen-${version}/galen-bin-${version}.zip";
|
2019-04-30 22:09:45 +00:00
|
|
|
sha256 = "13dq8cf0yy24vym6z7p8hb0mybgpcl4j5crsaq8a6pjfxz6d17mq";
|
2016-02-25 09:25:31 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2016-02-25 09:25:31 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-07-14 08:52:13 +00:00
|
|
|
cat galen | sed -e "s,java,$jre8/bin/java," > $out/bin/galen
|
2016-02-25 09:25:31 +00:00
|
|
|
chmod +x $out/bin/galen
|
|
|
|
cp galen.jar $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://galenframework.com";
|
2016-02-25 09:25:31 +00:00
|
|
|
description = "Automated layout testing for websites";
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2016-02-25 09:25:31 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|