inicia nixificación de Andesight
This commit is contained in:
parent
d0e469dc16
commit
4ac2545d38
|
@ -1,17 +0,0 @@
|
||||||
{ lib, stdenv, requireFile, ... }:
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
version = "510_STD";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "andesight";
|
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = requireFile {
|
|
||||||
name = "AndeSight_V${version}_OFFICIAL_Linux_x64_COPILOT600Beta.tgz";
|
|
||||||
sha256 = "6757bc0d84ea7ee9157f151fb61c2f60804f850b7f93dfa243b9f6f5025065ae";
|
|
||||||
url = "http://www.andestech.com/en/support-downloads/andesight-ide-download/";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta.license = licenses.unfree;
|
|
||||||
}
|
|
65
pkgs/andesight/default.nix
Normal file
65
pkgs/andesight/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
{ 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;
|
||||||
|
}
|
31
pkgs/andesight/install-properties.patch
Normal file
31
pkgs/andesight/install-properties.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
--- a/AndeSight_V510_STD_OFFICIAL_Linux_x64_COPILOT600Beta/Linux_x64/Disk1/InstData/install.properties 2022-01-19 23:54:49.000000000 -0600
|
||||||
|
+++ b/AndeSight_V510_STD_OFFICIAL_Linux_x64_COPILOT600Beta/Linux_x64/Disk1/InstData/install.properties 2022-01-19 23:54:49.000000000 -0600
|
||||||
|
@@ -8,14 +8,14 @@
|
||||||
|
|
||||||
|
#Choose Install Folder
|
||||||
|
#---------------------
|
||||||
|
-USER_INSTALL_DIR=/local/Andestech/AndeSight_STD_v510
|
||||||
|
+USER_INSTALL_DIR=@out@/andesight
|
||||||
|
|
||||||
|
#License Type Selection
|
||||||
|
#----------------------
|
||||||
|
#LICENSE_TYPE_A: Activation Code, LICENSE_TYPE_F: Floating License, LICENSE_TYPE_N:Node-Lock License
|
||||||
|
#----------------------
|
||||||
|
-LICENSE_TYPE_A=1
|
||||||
|
-LICENSE_TYPE_F=0
|
||||||
|
+LICENSE_TYPE_A=0
|
||||||
|
+LICENSE_TYPE_F=1
|
||||||
|
LICENSE_TYPE_N=0
|
||||||
|
|
||||||
|
#Language Selection
|
||||||
|
@@ -30,8 +30,8 @@
|
||||||
|
#----------------------
|
||||||
|
#UI_MCU: Provides a streamlined UI specialized for developing micro-controller applications.
|
||||||
|
#UI_STD: Comprises a full-featured layout to fulfill all development requirements.
|
||||||
|
-UI_MCU=1
|
||||||
|
-UI_STD=0
|
||||||
|
+UI_MCU=0
|
||||||
|
+UI_STD=1
|
||||||
|
|
||||||
|
#IDE / BSP Selection
|
||||||
|
#----------------------
|
|
@ -1,4 +1,4 @@
|
||||||
pkgs:
|
pkgs:
|
||||||
{
|
{
|
||||||
andesight = pkgs.callPackage ./andesight.nix {};
|
andesight = pkgs.callPackage ./andesight {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue