Working lightlyshaders except on laptop? 🤷

This commit is contained in:
Chris Cochrun 2022-05-24 09:35:29 -05:00
parent c124529a32
commit cf69aee709
7 changed files with 82 additions and 45 deletions

View file

@ -1,47 +1,50 @@
{
mkDerivation,
stdenv,
lib,
fetchFromGitHub,
qtbase,
qtx11extras,
qttools,
kglobalaccel,
kinit,
# qtx11extras,
# qttools,
# kglobalaccel,
# kinit,
kwin,
kio,
kguiaddons,
kcoreaddons,
systemsettings,
# kio,
# kguiaddons,
# kcoreaddons,
# systemsettings,
cmake,
extra-cmake-modules,
wrapQtAppsHook,
libepoxy,
kdelibs4support,
libXdmcp
}:
mkDerivation rec {
stdenv.mkDerivation rec {
pname = "LightlyShaders";
version = "0.0.2";
version = "0.0.4";
src = fetchFromGitHub {
owner = "a-parhom";
repo = "LightlyShaders";
rev = "d2a643b0c56d50d2ac1822e04c7b83d72de4213e";
rev = "0294499afece1620f47fa38fa74fa8604077347f";
sha256 = "MJk2pXRmyZDZX7KeZBHNKi0WQcQwqTM1nZWTWSxnvfc=";
};
dontWrapQtApps = true;
# dontWrapQtApps = true;
buildInputs = [
qtbase
qtx11extras
qttools
kglobalaccel
kinit
# qtx11extras
# qttools
# kglobalaccel
kdelibs4support
# kinit
kwin
kio
kguiaddons
kcoreaddons
systemsettings
# kio
# kguiaddons
# kcoreaddons
# systemsettings
libepoxy
libXdmcp
];
@ -49,16 +52,24 @@ mkDerivation rec {
nativeBuildInputs = [
cmake
extra-cmake-modules
wrapQtAppsHook
];
preConfigure = ''
local modulepath=$(kf5-config --install module)
local datapath=$(kf5-config --install data)
local servicespath=$(kf5-config --install services)
substituteInPlace CMakeLists.txt \
--replace "\''${MODULEPATH}" "$out/''${KDE_INSTALL_QTPLUGINDIR}" \
--replace "\''${DATAPATH}" "$out/''${datapath#/nix/store/*/}" \
--replace "\''${SERVICES_INSTALL_DIR}" "$out/''${servicespath#/nix/store/*/}"
postConfigure = ''
# local modulepath=$(kf5-config --install module)
# local datapath=$(kf5-config --install data)
# local servicespath=$(kf5-config --install services)
# substituteInPlace CMakeLists.txt \
# --replace "\''${MODULEPATH}" "$out/''${modulepath#/nix/store/*/}" \
# --replace "\''${DATAPATH}" "$out/''${datapath#/nix/store/*/}"
# substituteInPlace CMakeLists.txt \
# --replace "\''${MODULEPATH}" "$out/qt-5.15.3/plugins" \
# --replace "\''${DATAPATH}" "$out/share"
substituteInPlace cmake_install.cmake \
--replace "${kdelibs4support}" "$out"
'';
meta = with lib; {

View file

@ -1 +1 @@
/nix/store/9zw7rwdbj8kkvy3mm5y44frlm2mg0lil-LightlyShaders-0.0.2
/nix/store/8v4a6zsgpal8vs6xrsqkzknxpajkbwbl-LightlyShaders-0.0.3