1 { stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
2 , libzip, boost, fftw, libusb1, qtbase, qtsvg, qtwayland
3 , python3, desktopToDarwinBundle
6 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
12 owner = "DreamSourceLab";
15 sha256 = "sha256-d/TfCuJzAM0WObOiBhgfsTirlvdROrlCm+oL1cqUrIs=";
19 # Fix absolute install paths
23 nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]
24 ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
27 boost fftw qtbase qtsvg libusb1 libzip
29 ] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
32 description = "GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
33 mainProgram = "DSView";
34 homepage = "https://www.dreamsourcelab.com/";
35 license = licenses.gpl3Plus;
36 platforms = platforms.unix;
37 maintainers = with maintainers; [ bachp carlossless ];