Merge pull request #13441 from gilligan/add-galen-package
galen init at 2.2.1
This commit is contained in:
commit
c183117aee
35
pkgs/development/tools/galen/default.nix
Normal file
35
pkgs/development/tools/galen/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, fetchurl, jdk, unzip }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "galen";
|
||||||
|
version = "2.2.1";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
inherit jdk;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/galenframework/galen/releases/download/galen-2.2.1/galen-bin-${version}.zip";
|
||||||
|
sha256 = "0zwrh3bxcgkwip6z9lvy3hn53kfr99cdij64c57ff8d95xilclhb";
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user