nixpkgs-suyu/pkgs/development/tools/galen/default.nix

34 lines
788 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, jre8, unzip }:
2016-02-25 10:25:31 +01:00
stdenv.mkDerivation rec {
pname = "galen";
version = "2.4.4";
2016-02-25 10:25:31 +01:00
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";
sha256 = "13dq8cf0yy24vym6z7p8hb0mybgpcl4j5crsaq8a6pjfxz6d17mq";
2016-02-25 10:25:31 +01:00
};
nativeBuildInputs = [ unzip ];
2016-02-25 10:25:31 +01:00
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 lib; {
homepage = "http://galenframework.com";
2016-02-25 10:25:31 +01:00
description = "Automated layout testing for websites";
license = licenses.asl20;
maintainers = [ ];
platforms = platforms.linux ++ platforms.darwin;
};
}