nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitea,
5 qmake,
6 qttools,
7 qtbase,
8 qtserialport,
9 qtconnectivity,
10 qtcharts,
11 wrapQtAppsHook,
12 fetchpatch,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "ubpm";
17 version = "1.10.0";
18
19 src = fetchFromGitea {
20 domain = "codeberg.org";
21 owner = "LazyT";
22 repo = "ubpm";
23 rev = finalAttrs.version;
24 hash = "sha256-BUUn1WyLT7nm4I+2SpO1ZtIf8isGDy8Za15SiO7sXL8=";
25 };
26
27 patches = [
28 # fixes qmake for nix
29 (fetchpatch {
30 url = "https://codeberg.org/LazyT/ubpm/commit/f18841d6473cab9aa2a9d4c02392b8e103245ef6.diff";
31 hash = "sha256-lgXWu8PUUCt66btj6hVgOFXz3U1BJM3ataSo1MpHkfU=";
32 })
33 ];
34
35 preConfigure = ''
36 cd ./sources/
37 '';
38
39 postFixup = ''
40 wrapQtApp $out/bin/ubpm
41 '';
42
43 nativeBuildInputs = [
44 qmake
45 qttools
46 wrapQtAppsHook
47 ];
48
49 # *.so plugins are being wrapped automatically which breaks them
50 dontWrapQtApps = true;
51
52 buildInputs = [
53 qtbase
54 qtserialport
55 qtconnectivity
56 qtcharts
57 ];
58
59 meta = with lib; {
60 homepage = "https://codeberg.org/LazyT/ubpm";
61 description = "Universal Blood Pressure Manager";
62 mainProgram = "ubpm";
63 license = licenses.gpl3Only;
64 maintainers = with maintainers; [ kurnevsky ];
65 broken = stdenv.hostPlatform.isDarwin;
66 };
67})