2023-08-22 20:05:09 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
|
|
|
|
, libzip, boost, fftw, qtbase, qtwayland, qtsvg, libusb1
|
2022-11-21 17:40:18 +00:00
|
|
|
, python3, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dsview";
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DreamSourceLab";
|
|
|
|
repo = "DSView";
|
2020-11-30 08:33:03 +00:00
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-wnBVhZ3Ky9PXs48OVvSbD1aAUSEqAwaNLg7Ntim7yFM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix absolute install paths
|
|
|
|
./install.patch
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
boost fftw qtbase qtwayland qtsvg libusb1 libzip
|
2020-11-30 08:33:03 +00:00
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
|
|
|
|
homepage = "https://www.dreamsourcelab.com/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2020-11-30 08:33:03 +00:00
|
|
|
maintainers = with maintainers; [ bachp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|