nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 41 lines 896 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 jre8, 6 unzip, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "galen"; 11 version = "2.4.4"; 12 13 inherit jre8; 14 15 src = fetchurl { 16 url = "https://github.com/galenframework/galen/releases/download/galen-${version}/galen-bin-${version}.zip"; 17 sha256 = "13dq8cf0yy24vym6z7p8hb0mybgpcl4j5crsaq8a6pjfxz6d17mq"; 18 }; 19 20 nativeBuildInputs = [ unzip ]; 21 22 buildPhase = '' 23 mkdir -p $out/bin 24 ''; 25 26 installPhase = '' 27 cat galen | sed -e "s,java,$jre8/bin/java," > $out/bin/galen 28 chmod +x $out/bin/galen 29 cp galen.jar $out/bin 30 ''; 31 32 meta = with lib; { 33 homepage = "https://galenframework.com"; 34 description = "Automated layout testing for websites"; 35 mainProgram = "galen"; 36 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 37 license = licenses.asl20; 38 maintainers = [ ]; 39 platforms = platforms.linux ++ platforms.darwin; 40 }; 41}