29 lines
581 B
Nix
29 lines
581 B
Nix
{
|
|
lib,
|
|
symlinkJoin,
|
|
makeWrapper,
|
|
quickshell,
|
|
kdePackages,
|
|
configPath ? ./.,
|
|
}: let
|
|
qmlPath = lib.makeSearchPath "lib/qt-6/qml" [
|
|
kdePackages.qtbase
|
|
kdePackages.qtdeclarative
|
|
kdePackages.qt5compat
|
|
];
|
|
in
|
|
symlinkJoin {
|
|
pname = "retroism";
|
|
inherit (quickshell) version;
|
|
|
|
paths = [quickshell];
|
|
nativeBuildInputs = [makeWrapper];
|
|
|
|
postBuild = ''
|
|
makeWrapper $out/bin/quickshell $out/bin/retroism \
|
|
--set QML2_IMPORT_PATH "${qmlPath}" \
|
|
--add-flags '-p ${configPath}'
|
|
'';
|
|
|
|
meta.mainProgram = "retroism";
|
|
}
|