2021-05-17 08:47:31 +00:00
|
|
|
{ stdenv, autoPatchelfHook, libglvnd
|
|
|
|
, libgcrypt,zlib,glib,fontconfig,freetype,libdrm
|
|
|
|
, libxkbcommon
|
|
|
|
, libpulseaudio
|
2022-06-10 19:37:49 +00:00
|
|
|
, xorg
|
2021-05-17 08:47:31 +00:00
|
|
|
, gst_all_1
|
2021-09-10 20:32:53 +00:00
|
|
|
, krb5
|
2021-05-17 08:47:31 +00:00
|
|
|
, alsaLib
|
|
|
|
}:
|
|
|
|
# via https://raw.githubusercontent.com/simon-the-sourcerer-ab/chitubox/main/default.nix
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "chitubox";
|
|
|
|
|
2021-09-10 20:32:53 +00:00
|
|
|
version = "1.9.0";
|
2021-05-17 08:47:31 +00:00
|
|
|
|
|
|
|
src = builtins.fetchTarball {
|
2021-06-05 10:47:16 +00:00
|
|
|
#url = "https://sac.chitubox.com/software/download.do?softwareId=17839&softwareVersionId=v${version}&fileName=CHITUBOX_V${version}.tar.gz";
|
|
|
|
url = "https://archive.org/download/chitubox-v-1.8.1.tar/CHITUBOX_V${version}.tar.gz";
|
2021-09-10 20:32:53 +00:00
|
|
|
sha256 = "1ywcizxdkwlhi8z3jshl3b6ha8iwibssxh8fk7s32h3z8vl8zcl7";
|
2021-05-17 08:47:31 +00:00
|
|
|
};
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
2022-06-10 19:37:49 +00:00
|
|
|
buildInputs = with xorg; [ stdenv.cc.cc.lib libglvnd libgcrypt zlib glib fontconfig freetype libdrm
|
2021-09-10 20:32:53 +00:00
|
|
|
libxkbcommon libpulseaudio alsaLib
|
2021-05-17 08:47:31 +00:00
|
|
|
xcbutilwm xcbutilimage xcbutilrenderutil xcbutilkeysyms
|
2021-09-10 20:32:53 +00:00
|
|
|
gst_all_1.gst-plugins-base gst_all_1.gstreamer krb5
|
2021-05-17 08:47:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p bin
|
|
|
|
mv CHITUBOX bin/chitubox
|
|
|
|
|
|
|
|
# Remove unused stuff
|
|
|
|
rm AppRun
|
|
|
|
|
|
|
|
# Place resources where ChiTuBox can expect to find them
|
|
|
|
mkdir ChiTuBox
|
|
|
|
mv resource ChiTuBox/
|
|
|
|
|
|
|
|
# Configure Qt paths
|
|
|
|
cat << EOF > bin/qt.conf
|
|
|
|
[Paths]
|
|
|
|
Prefix = $out
|
|
|
|
Plugins = plugins
|
|
|
|
Imports = qml
|
|
|
|
Qml2Imports = qml
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mv * $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
autoPatchelfIgnoreMissingDeps=true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Revolutionary Tool to Change 3D Printing Processes within One Click";
|
|
|
|
homepage = "https://www.chitubox.com";
|
|
|
|
license = {
|
|
|
|
fullName = "ChiTuBox EULA";
|
|
|
|
shortName = "ChiTuBox";
|
|
|
|
url = "https://www.chitubox.com";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|