plasticity now local; rnote no onger flatpak; added mission-center

This commit is contained in:
William 2024-09-16 16:02:40 -03:00
parent aa758b8807
commit 214d281c9b
4 changed files with 106 additions and 10 deletions

View file

@ -136,6 +136,8 @@
# inherit (self.packages."x86_64-linux") chromeos-ectool; # inherit (self.packages."x86_64-linux") chromeos-ectool;
chromeos-ectool = nixpkgs.legacyPackages."x86_64-linux".callPackage chromeos-ectool = nixpkgs.legacyPackages."x86_64-linux".callPackage
./packages/chromeos-ectool.nix { }; ./packages/chromeos-ectool.nix { };
plasticity = nixpkgs.legacyPackages."x86_64-linux".callPackage
./packages/plasticity.nix { };
}; };
}; };

View file

@ -35,6 +35,7 @@ in {
libfido2 libfido2
libreoffice-qt libreoffice-qt
mangohud mangohud
mission-center
mpv mpv
nextcloud-client nextcloud-client
nix-init nix-init
@ -44,12 +45,13 @@ in {
orca-slicer orca-slicer
openscad openscad
p7zip p7zip
# plasticity plasticity
prismlauncher prismlauncher
protonup protonup
qbittorrent qbittorrent
qview qview
ripgrep ripgrep
rnote
solvespace solvespace
space-cadet-pinball space-cadet-pinball
sparrow sparrow
@ -64,7 +66,6 @@ in {
services.flatpak = { services.flatpak = {
enable = true; enable = true;
packages = [ packages = [
"com.github.flxzt.rnote"
"com.github.tchx84.Flatseal" "com.github.tchx84.Flatseal"
"com.microsoft.Edge" "com.microsoft.Edge"
"com.steamgriddb.SGDBoop" "com.steamgriddb.SGDBoop"

101
packages/plasticity.nix Normal file
View file

@ -0,0 +1,101 @@
{ 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, wrapGAppsHook3
, xdg-utils, xorg }:
stdenv.mkDerivation rec {
pname = "plasticity";
version = "24.2.3";
src = fetchurl {
url =
"https://github.com/nkallen/plasticity/releases/download/v${version}/Plasticity-${version}-1.x86_64.rpm";
hash = "sha256-3dHS7chTgoD35AV/q8DHIYl43KbCsoFYEqSQHXm05tg=";
};
passthru.updateScript = ./update.sh;
nativeBuildInputs = [ wrapGAppsHook3 autoPatchelfHook rpmextract mesa ];
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" ];
};
}

View file

@ -9,14 +9,6 @@
name = "Inter"; name = "Inter";
size = 10; size = 10;
}; };
theme = {
package = pkgs.kdePackages.breeze-gtk;
name = "Breeze";
};
iconTheme = {
package = pkgs.kdePackages.breeze-icons;
name = "Breeze";
};
}; };
home.packages = with pkgs; home.packages = with pkgs;