nixpkgs-suyu/pkgs/development/tools/galen/default.nix
Ryan Mulligan 9d5f5eb92c galen: 2.3.0 -> 2.3.6
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6/bin/galen -h` got 0 exit code
- ran `/nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6/bin/galen --help` got 0 exit code
- ran `/nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6/bin/galen help` got 0 exit code
- ran `/nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6/bin/galen -v` and found version 2.3.6
- ran `/nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6/bin/galen --version` and found version 2.3.6
- ran `/nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6/bin/galen version` and found version 2.3.6
- found 2.3.6 in filename of file in /nix/store/sp59abnhzpg7zdn66207wizb57dy4fxx-galen-2.3.6

cc ""
2018-02-26 06:38:25 -08:00

34 lines
814 B
Nix

{ stdenv, fetchurl, jre8, unzip }:
stdenv.mkDerivation rec {
pname = "galen";
version = "2.3.6";
name = "${pname}-${version}";
inherit jre8;
src = fetchurl {
url = "https://github.com/galenframework/galen/releases/download/galen-${version}/galen-bin-${version}.zip";
sha256 = "0kndib3slj7mdvhd36fxin5q87cnsz4hs135yxgjx0nccxq4f2h5";
};
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;
};
}