2024-04-21 15:54:59 +00:00
|
|
|
{ alsa-lib
|
|
|
|
, at-spi2-atk
|
|
|
|
, autoPatchelfHook
|
|
|
|
, cairo
|
|
|
|
, cups
|
|
|
|
, dbus
|
|
|
|
, desktop-file-utils
|
|
|
|
, expat
|
|
|
|
, fetchurl
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gtk3
|
|
|
|
, gvfs
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, lib
|
|
|
|
, libdrm
|
|
|
|
, libglvnd
|
|
|
|
, libnotify
|
|
|
|
, libsForQt5
|
|
|
|
, libxkbcommon
|
|
|
|
, mesa
|
|
|
|
, nspr
|
|
|
|
, nss
|
|
|
|
, openssl
|
|
|
|
, pango
|
|
|
|
, rpmextract
|
|
|
|
, stdenv
|
|
|
|
, systemd
|
|
|
|
, trash-cli
|
|
|
|
, vulkan-loader
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2024-04-21 15:54:59 +00:00
|
|
|
, xdg-utils
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "plasticity";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "24.1.6";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/nkallen/plasticity/releases/download/v${version}/Plasticity-${version}-1.x86_64.rpm";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-gGfDsAqg0PkORrOEvBWLpKgLv5a+M9Rj+oC+jF1gYqA=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 autoPatchelfHook rpmextract mesa ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
at-spi2-atk
|
|
|
|
cairo
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
desktop-file-utils
|
|
|
|
expat
|
|
|
|
gdk-pixbuf
|
|
|
|
gtk3
|
|
|
|
gvfs
|
|
|
|
hicolor-icon-theme
|
|
|
|
libdrm
|
|
|
|
libnotify
|
|
|
|
libsForQt5.kde-cli-tools
|
|
|
|
libxkbcommon
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
openssl
|
|
|
|
pango
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
trash-cli
|
|
|
|
xdg-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
runtimeDependencies = [
|
|
|
|
systemd
|
|
|
|
libglvnd
|
|
|
|
vulkan-loader #may help with nvidia users
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXcomposite
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXtst
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
# can't find anything on the internet about these files, no clue what they do
|
|
|
|
autoPatchelfIgnoreMissingDeps = [
|
|
|
|
"ACCAMERA.tx"
|
|
|
|
"AcMPolygonObj15.tx"
|
|
|
|
"ATEXT.tx"
|
|
|
|
"ISM.tx"
|
|
|
|
"RText.tx"
|
|
|
|
"SCENEOE.tx"
|
|
|
|
"TD_DbEntities.tx"
|
|
|
|
"TD_DbIO.tx"
|
|
|
|
"WipeOut.tx"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cd $out
|
|
|
|
rpmextract $src
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rm -r $out/usr
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
#--use-gl=egl for it to use hardware rendering it seems. Otherwise there are terrible framerates
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace share/applications/Plasticity.desktop \
|
|
|
|
--replace-fail 'Exec=Plasticity %U' "Exec=Plasticity --use-gl=egl %U"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CAD for artists";
|
|
|
|
homepage = "https://www.plasticity.xyz";
|
|
|
|
license = licenses.unfree;
|
|
|
|
mainProgram = "Plasticity";
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
maintainers = with maintainers; [ imadnyc ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|