1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00
nixpkgs/pkgs/development/tools/galen/default.nix

35 lines
814 B
Nix
Raw Normal View History

2016-07-14 09:52:13 +01:00
{ stdenv, fetchurl, jre8, unzip }:
2016-02-25 09:25:31 +00:00
stdenv.mkDerivation rec {
pname = "galen";
2016-07-14 09:52:13 +01:00
version = "2.3.0";
2016-02-25 09:25:31 +00:00
name = "${pname}-${version}";
2016-07-14 09:52:13 +01: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";
2016-07-14 09:52:13 +01:00
sha256 = "10z7vh3jiq7kbzzp3j0354swkr4xxz9qimi5c5bddbiy671k6cra";
2016-02-25 09:25:31 +00:00
};
buildInputs = [ unzip ];
buildPhase = ''
mkdir -p $out/bin
'';
installPhase = ''
2016-07-14 09:52:13 +01: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
'';
meta = with stdenv.lib; {
homepage = http://galenframework.com;
description = "Automated layout testing for websites";
license = licenses.asl20;
maintainers = [ ];
platforms = platforms.linux ++ platforms.darwin;
};
}