nixpkgs/pkgs/development/tools/galen/default.nix
R. RyanTM 630f3337d4 galen: 2.3.6 -> 2.3.7 (#41296)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/galen/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7/bin/galen.jar had a zero exit code or showed the expected version
- /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7/bin/galen passed the binary check.
- 1 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 2.3.7 with grep in /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7
- directory tree listing: https://gist.github.com/c69a7c8c8a31e5b3b0d3243ea03c777f
- du listing: https://gist.github.com/a6d7632f5a3c34d8c20c3f24715aa6a3
2018-05-31 09:11:40 +02:00

35 lines
814 B
Nix

{ stdenv, fetchurl, jre8, unzip }:
stdenv.mkDerivation rec {
pname = "galen";
version = "2.3.7";
name = "${pname}-${version}";
inherit jre8;
src = fetchurl {
url = "https://github.com/galenframework/galen/releases/download/galen-${version}/galen-bin-${version}.zip";
sha256 = "045y1s4n8jd52jnk9kwd0k4x3yscvcfsf2rxzn0xngvn9nkw2g65";
};
buildInputs = [ unzip ];
buildPhase = ''
mkdir -p $out/bin
'';
installPhase = ''
cat galen | sed -e "s,java,$jre8/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;
};
}