2023-07-15 17:15:38 +00:00
|
|
|
{ stdenv, lib, fetchFromGitea, qmake, qttools, qtbase, qtserialport
|
2024-04-21 15:54:59 +00:00
|
|
|
, qtconnectivity, qtcharts, wrapQtAppsHook, fetchpatch }:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "ubpm";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.10.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "LazyT";
|
|
|
|
repo = "ubpm";
|
|
|
|
rev = finalAttrs.version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BUUn1WyLT7nm4I+2SpO1ZtIf8isGDy8Za15SiO7sXL8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
patches = [
|
|
|
|
# fixes qmake for nix
|
|
|
|
(fetchpatch {
|
|
|
|
url =
|
|
|
|
"https://codeberg.org/LazyT/ubpm/commit/f18841d6473cab9aa2a9d4c02392b8e103245ef6.diff";
|
|
|
|
hash = "sha256-lgXWu8PUUCt66btj6hVgOFXz3U1BJM3ataSo1MpHkfU=";
|
|
|
|
})
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd ./sources/
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/ubpm
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
|
|
|
|
|
|
|
|
# *.so plugins are being wrapped automatically which breaks them
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ qtbase qtserialport qtconnectivity qtcharts ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://codeberg.org/LazyT/ubpm";
|
|
|
|
description = "Universal Blood Pressure Manager";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ubpm";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ kurnevsky ];
|
2024-04-21 15:54:59 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
})
|