Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1010 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
stdenv,
lib,
pkg-config,
qmake,
qtbase,
qtdeclarative,
sailfish-access-control,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sailfish-access-control-plugin";
inherit (sailfish-access-control) version src patches;
postPatch = ''
substituteInPlace qt/qt.pro \
--replace-fail '$$[QT_INSTALL_QML]' '${placeholder "out"}/${qtbase.qtQmlPrefix}'
'';
# QMake doesn't handle strictDeps well
strictDeps = false;
nativeBuildInputs = [
pkg-config
qmake
qtdeclarative # qmlplugindump
];
buildInputs = [
qtdeclarative
sailfish-access-control
];
# Qt plugin
dontWrapQtApps = true;
# sourceRoot breaks patches
preConfigure = ''
cd qt
'';
# Do all configuring now, not during build
postConfigure = ''
make qmake_all
'';
meta = {
description = "QML interface for sailfish-access-control";
inherit (sailfish-access-control.meta)
homepage
changelog
license
teams
platforms
;
};
})