Created
February 25, 2023 15:52
-
-
Save ck3d/9f5fda3cb934f6fe793cd3d2227b9d27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv | |
, fetchFromGitHub | |
, cmake | |
, makeWrapper | |
, qt5 | |
, libsForQt5 | |
, rtl-sdr | |
, libusb | |
, mesa_noglu | |
, faad2 | |
, fftwSinglePrec | |
, portaudio | |
, libsndfile | |
, libsamplerate | |
}: | |
stdenv.mkDerivation rec { | |
name = "qt-dab-2.0"; | |
src = fetchFromGitHub { | |
owner = "JvanKatwijk"; | |
repo = "qt-dab"; | |
rev = name; | |
sha256 = "1kvpx8j3gsm3xv1a5kq2v72y4hg1f4w8pfnpcn2ilm3wc343jasb"; | |
}; | |
postPatch = '' | |
rm CMakeLists.txt | |
ln -s CMakeLists.txt-qt5 CMakeLists.txt | |
''; | |
enableParallelBuild = true; | |
postInstall = '' | |
mkdir "$out/bin" | |
mv "$out"/qt-dab* "$out/bin/qt-dab" | |
''; | |
postFixup = '' | |
wrapProgram "$out/bin/qt-dab" \ | |
--set QT_QPA_PLATFORM_PLUGIN_PATH "${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.qtCompatVersion}/plugins/platforms" | |
''; | |
buildInputs = [ libsForQt5.qwt rtl-sdr libusb mesa_noglu faad2 fftwSinglePrec portaudio libsndfile libsamplerate ] | |
++ (with qt5; [ qtbase ]); | |
nativeBuildInputs = [ cmake makeWrapper ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment