73 lines
1.5 KiB
Nix
73 lines
1.5 KiB
Nix
{
|
|
mkDerivation,
|
|
lib,
|
|
fetchFromGitHub,
|
|
qtbase,
|
|
qtx11extras,
|
|
qttools,
|
|
kglobalaccel,
|
|
kinit,
|
|
kwin,
|
|
kio,
|
|
kguiaddons,
|
|
kcoreaddons,
|
|
systemsettings,
|
|
cmake,
|
|
extra-cmake-modules,
|
|
libepoxy,
|
|
libXdmcp
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "LightlyShaders";
|
|
version = "0.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a-parhom";
|
|
repo = "LightlyShaders";
|
|
rev = "d2a643b0c56d50d2ac1822e04c7b83d72de4213e";
|
|
sha256 = "MJk2pXRmyZDZX7KeZBHNKi0WQcQwqTM1nZWTWSxnvfc=";
|
|
};
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtx11extras
|
|
qttools
|
|
kglobalaccel
|
|
kinit
|
|
kwin
|
|
kio
|
|
kguiaddons
|
|
kcoreaddons
|
|
systemsettings
|
|
libepoxy
|
|
libXdmcp
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
];
|
|
|
|
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/*/}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
name = "LightlyShaders";
|
|
description = "Round corners and outline effect for KWin.";
|
|
homepage = "https://github.com/a-parhom/LightlyShaders";
|
|
license = licenses.gpl3;
|
|
maintainers = [ "chriscochrun" ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|