6ed9cd9b00
overwritten phases omitted patchShebangs from being called so the galen wrapper still contained `#!/usr/bin/bash`.
34 lines
811 B
Nix
34 lines
811 B
Nix
{ stdenv, fetchurl, jdk, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "galen";
|
|
version = "2.2.4";
|
|
name = "${pname}-${version}";
|
|
|
|
inherit jdk;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/galenframework/galen/releases/download/galen-${version}/galen-bin-${version}.zip";
|
|
sha256 = "0qx6pza6aw880ph76wbypcgy983pln8k4ad2indagb5qhiz4zw1d";
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
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;
|
|
};
|
|
}
|