summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/radio/suwidgets
diff options
context:
space:
mode:
authorGrigory Shipunov <blame@oxapentane.com>2022-10-08 02:27:18 +0200
committerGrigory Shipunov <blame@oxapentane.com>2022-10-08 02:27:18 +0200
commit846c75400ecf5e43c333496844443891ac31a826 (patch)
tree54ee38428063756f21257b2871ccb04d5a0010e7 /pkgs/applications/radio/suwidgets
parenteb5258213edb874d9f31ee1b5a8069d94dc0bfcf (diff)
suwidgets: init at unstable-2022-04-03
Diffstat (limited to 'pkgs/applications/radio/suwidgets')
-rw-r--r--pkgs/applications/radio/suwidgets/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/applications/radio/suwidgets/default.nix b/pkgs/applications/radio/suwidgets/default.nix
new file mode 100644
index 000000000000..05f6cf12d6cd
--- /dev/null
+++ b/pkgs/applications/radio/suwidgets/default.nix
@@ -0,0 +1,51 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, qmake
+, qtbase
+, pkg-config
+, sigutils
+, fftwSinglePrec
+}:
+
+stdenv.mkDerivation rec {
+ pname = "suwidgets";
+ version = "unstable-2022-04-03";
+
+ src = fetchFromGitHub {
+ owner = "BatchDrake";
+ repo = "SuWidgets";
+ rev = "826b3eeae5b682dc063f53b427caa9c7c48131ea";
+ sha256 = "sha256-cyFLsP+8GbALdlgEnVX4201Qq/KAxb/Vv+sJqbFpvUk=";
+ };
+
+ dontWrapQtApps = true;
+
+ postPatch = ''
+ substituteInPlace SuWidgets.pri \
+ --replace "PKGCONFIG += sigutils fftw3" "PKGCONFIG += sigutils fftw3f"
+ '';
+
+ nativeBuildInputs = [
+ qmake
+ pkg-config
+ ];
+
+ buildInputs = [
+ qtbase
+ sigutils
+ fftwSinglePrec
+ ];
+
+ 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 oxapentane ];
+ };
+}