nixpkgs/pkgs/applications/misc/ubpm/default.nix

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

49 lines
1.2 KiB
Nix
Raw Normal View History

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