commit 8d01793f4728139f78c8bea5855c2afefd199174
parent 09bd4346723351351e2a9e7778f1ae38c2831f73
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 5 Oct 2021 22:06:26 +0300
sigdigger: enable on darwin
Diffstat:
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/pkgs/radio/sigdigger/default.nix b/pkgs/radio/sigdigger/default.nix
@@ -23,12 +23,16 @@ mkDerivation rec {
qmakeFlags = [ "SUWIDGETS_PREFIX=${suwidgets}" "SigDigger.pro" ];
+ installPhase = lib.optionalString stdenv.isDarwin ''
+ mkdir -p $out/Applications
+ cp -r *.app $out/Applications
+ '';
+
meta = with lib; {
description = "Qt-based digital signal analyzer, using Suscan core and Sigutils DSP library";
inherit (src.meta) homepage;
license = licenses.gpl3Plus;
maintainers = [ maintainers.sikmir ];
- platforms = platforms.linux;
- skip.ci = stdenv.isDarwin;
+ platforms = platforms.unix;
};
}
diff --git a/pkgs/radio/suscan/default.nix b/pkgs/radio/suscan/default.nix
@@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
hash = "sha256-KU3JaGIL65LWJWc6Iw/eyKdUMnVQ85g0MtmuSPGdp44=";
};
+ postPatch = ''
+ substituteInPlace CMakeLists.txt \
+ --replace "set(XML2_INCLUDE_DIRS" "#set(XML2_INCLUDE_DIRS"
+ '';
+
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ fftwFloat libsndfile libxml2 sigutils soapysdr volk ];
@@ -22,7 +27,6 @@ stdenv.mkDerivation rec {
inherit (src.meta) homepage;
license = licenses.gpl3Plus;
maintainers = [ maintainers.sikmir ];
- platforms = platforms.linux;
- skip.ci = stdenv.isDarwin;
+ platforms = platforms.unix;
};
}