66 lines
1.5 KiB
Nix
66 lines
1.5 KiB
Nix
{ lib, stdenv, requireFile, jre8, autoPatchelfHook, xorg, ncurses5, zlib, bzip2, readline, libsecret, glib, gtk2-x11, pango, atk, cairo, gdk-pixbuf, freetype, fontconfig, alsa-lib, libGL, gtk3, libxslt, ... }:
|
|
with lib;
|
|
let
|
|
version = "510_STD";
|
|
filename = "AndeSight_V${version}_OFFICIAL_Linux_x64_COPILOT600Beta";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "andesight";
|
|
inherit version;
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
];
|
|
|
|
buildInputs = [
|
|
jre8
|
|
xorg.libXext
|
|
xorg.libXrender
|
|
xorg.libXtst
|
|
xorg.libXi
|
|
xorg.libXxf86vm
|
|
ncurses5
|
|
zlib
|
|
bzip2
|
|
readline
|
|
libsecret
|
|
glib
|
|
gtk2-x11
|
|
pango
|
|
atk
|
|
cairo
|
|
gdk-pixbuf
|
|
freetype
|
|
fontconfig
|
|
alsa-lib
|
|
libGL
|
|
gtk3
|
|
libxslt
|
|
];
|
|
|
|
src = requireFile {
|
|
name = "${filename}.tgz";
|
|
sha256 = "6757bc0d84ea7ee9157f151fb61c2f60804f850b7f93dfa243b9f6f5025065ae";
|
|
url = "http://www.andestech.com/en/support-downloads/andesight-ide-download/";
|
|
};
|
|
|
|
patches = [
|
|
./install-properties.patch
|
|
];
|
|
|
|
buildPhase = ''
|
|
cd ${filename}/Linux_x64/Disk1/InstData/
|
|
substituteAll install.properties install.properties
|
|
cd VM
|
|
./install.bin LAX_VM ${jre8}/bin/java -f ../install.properties
|
|
|
|
rm -vf $out/andesight/jre_64/lib/amd64/libavplugin-*
|
|
rm -vf $out/andesight/.jre/lib/amd64/libavplugin-*
|
|
rm -vf $out/andesight/sid/ins/_hashlib.so
|
|
rm -vf $out/andesight/sid/ins/_ssl.so
|
|
addAutoPatchelfSearchPath $out/andesight/.jre/lib/amd64/
|
|
'';
|
|
|
|
meta.license = licenses.unfree;
|
|
}
|