ubpm: set qmakeFlags

- Set `UPDATE_HIDE` and `UPDATE_DISABLE` as updates are to be handled by
  `nixpkgs` rather than the software itself.

- Set `DISTRIBUTION` to mark the binary as being built/maintained via a
  Linux distribution.
This commit is contained in:
magicquark
2025-12-13 05:20:10 +00:00
parent 246fbf76dd
commit 35fd0f77be
+7 -1
View File
@@ -23,6 +23,12 @@ stdenv.mkDerivation (finalAttrs: {
sourceRoot = "${finalAttrs.src.name}/sources";
qmakeFlags = [
"DEFINES+=DISTRIBUTION"
"DEFINES+=UPDATE_HIDE"
"DEFINES+=UPDATE_DISABLE"
];
postFixup = ''
wrapQtApp $out/bin/ubpm
'';
@@ -36,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
# *.so plugins are being wrapped automatically which breaks them
dontWrapQtApps = true;
buildInputs = [
qt6.qtbase
qt6.qtserialport