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

36 lines
869 B
Nix
Raw Normal View History

2016-02-25 09:25:31 +00:00
{ stdenv, fetchurl, jdk, unzip }:
stdenv.mkDerivation rec {
pname = "galen";
2016-04-01 11:51:17 +01:00
version = "2.2.4";
2016-02-25 09:25:31 +00:00
name = "${pname}-${version}";
inherit jdk;
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-04-01 11:51:17 +01:00
sha256 = "0qx6pza6aw880ph76wbypcgy983pln8k4ad2indagb5qhiz4zw1d";
2016-02-25 09:25:31 +00:00
};
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;
};
}