-
Notifications
You must be signed in to change notification settings - Fork 2
/
suwidgets.nix
43 lines (35 loc) · 970 Bytes
/
suwidgets.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, pkg-config, sigutils, fftwSinglePrec }:
stdenv.mkDerivation rec {
pname = "suwidgets";
version = "2022-04-03";
src = fetchFromGitHub {
owner = "BatchDrake";
repo = "SuWidgets";
rev = "826b3eeae5b682dc063f53b427caa9c7c48131ea";
sha256 = "sha256-cyFLsP+8GbALdlgEnVX4201Qq/KAxb/Vv+sJqbFpvUk=";
};
dontWrapQtApps = true;
nativeBuildInputs = [
qmake
pkg-config
];
buildInputs = [
qtbase
sigutils
fftwSinglePrec
];
preConfigure = ''
sed -i 's/PKGCONFIG += sigutils fftw3/PKGCONFIG += sigutils fftw3f/' SuWidgets.pri
sed -i 's/util\/compat-/sys\//' WaveViewTree.cpp
'';
qmakeFlags = [
"SuWidgetsLib.pro"
];
meta = with lib; {
description = "Sigutils-related widgets";
homepage = "https://github.com/BatchDrake/SuWidgets";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ polygon ];
};
}