2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cargo, rustc, autoreconfHook, jdk, glib, xulrunner, zip, pkg-config, npapi_sdk, bash, bc }:
|
2014-03-24 19:52:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-21 20:21:39 +01:00
|
|
|
pname = "adoptopenjdk-icedtea-web";
|
2014-03-24 19:52:18 +00:00
|
|
|
|
2022-01-02 15:48:11 +00:00
|
|
|
version = "1.8.8";
|
2014-03-24 19:52:18 +00:00
|
|
|
|
2019-08-10 08:17:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AdoptOpenJDK";
|
|
|
|
repo = "IcedTea-Web";
|
2019-08-24 07:19:05 +01:00
|
|
|
rev = "icedtea-web-${version}";
|
2022-01-02 15:48:11 +00:00
|
|
|
sha256 = "sha256-hpEVWG9ltNDL/0EFJjgQRRce+BLcCO4ZERULYZxyC1o=";
|
2014-03-24 19:52:18 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config bc ];
|
2019-08-13 22:42:32 +01:00
|
|
|
buildInputs = [ cargo rustc glib xulrunner zip npapi_sdk ];
|
2014-03-24 19:52:18 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2015-09-18 21:09:20 +01:00
|
|
|
configureFlagsArray+=("BIN_BASH=${bash}/bin/bash")
|
2014-03-24 19:52:18 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-10 08:17:20 +01:00
|
|
|
patches = [ ./patches/0001-make-cargo-work-with-nix-build-on-linux.patch ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
|
|
# Needed for the below rust-launcher tests to pass
|
|
|
|
# dirs_paths_helper::tests::check_config_files_paths
|
|
|
|
# dirs_paths_helper::tests::check_legacy_config_files_paths
|
|
|
|
|
|
|
|
mkdir -p $HOME/.icedtea
|
|
|
|
touch $HOME/.icedtea/deployment.properties
|
|
|
|
|
|
|
|
mkdir -p $XDG_CONFIG_HOME/icedtea-web
|
|
|
|
touch $XDG_CONFIG_HOME/icedtea-web/deployment.properties
|
|
|
|
'';
|
|
|
|
|
|
|
|
HOME = "/build";
|
|
|
|
XDG_CONFIG_HOME = "/build";
|
|
|
|
|
2014-03-24 19:52:18 +00:00
|
|
|
configureFlags = [
|
2019-08-10 08:17:20 +01:00
|
|
|
"--with-itw-libs=DISTRIBUTION"
|
2015-01-07 19:26:59 +00:00
|
|
|
"--with-jdk-home=${jdk.home}"
|
2015-09-18 21:09:20 +01:00
|
|
|
"--disable-docs"
|
2014-03-24 19:52:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mozillaPlugin = "/lib";
|
|
|
|
|
2019-08-10 17:27:23 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp javaws.desktop itweb-settings.desktop policyeditor.desktop $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2014-03-24 19:52:18 +00:00
|
|
|
meta = {
|
|
|
|
description = "Java web browser plugin and an implementation of Java Web Start";
|
|
|
|
longDescription = ''
|
|
|
|
A Free Software web browser plugin running applets written in the Java
|
|
|
|
programming language and an implementation of Java Web Start, originally
|
|
|
|
based on the NetX project.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/adoptopenjdk/icedtea-web";
|
2021-01-22 11:25:31 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2014-03-24 19:52:18 +00:00
|
|
|
};
|
|
|
|
}
|