2020-11-18 14:36:03 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, pkgconfig, cmake
|
|
|
|
, libzip, boost, fftw, qtbase, libusb1, libsigrok4dsl
|
|
|
|
, libsigrokdecode4dsl, python3, fetchpatch
|
2018-12-09 18:47:14 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-18 14:36:03 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dsview";
|
2018-12-09 18:47:14 +00:00
|
|
|
|
2020-11-18 14:36:03 +00:00
|
|
|
version = "1.12";
|
2018-12-09 18:47:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DreamSourceLab";
|
|
|
|
repo = "DSView";
|
2020-11-18 14:36:03 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "q7F4FuK/moKkouXTNPZDVon/W/ZmgtNHJka4MiTxA0U=";
|
2018-12-09 18:47:14 +00:00
|
|
|
};
|
|
|
|
|
2020-11-18 14:36:03 +00:00
|
|
|
sourceRoot = "source/DSView";
|
2018-12-09 18:47:14 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix absolute install paths
|
|
|
|
./install.patch
|
2020-11-18 14:36:03 +00:00
|
|
|
|
|
|
|
# Fix buld with Qt5.15 already merged upstream for future release
|
|
|
|
# Using local file instead of content of commit #33e3d896a47 because
|
|
|
|
# sourceRoot make it unappliable
|
|
|
|
./qt515.patch
|
2018-12-09 18:47:14 +00:00
|
|
|
];
|
|
|
|
|
2020-11-18 14:36:03 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2018-12-09 18:47:14 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-11-18 14:36:03 +00:00
|
|
|
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl
|
|
|
|
python3
|
2018-12-09 18:47:14 +00:00
|
|
|
];
|
|
|
|
|
2020-11-18 14:36:03 +00:00
|
|
|
meta = with lib; {
|
2018-12-09 18:47:14 +00:00
|
|
|
description = "A GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.dreamsourcelab.com/";
|
2018-12-09 18:47:14 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2020-11-18 14:36:03 +00:00
|
|
|
maintainers = with maintainers; [ bachp ];
|
2018-12-09 18:47:14 +00:00
|
|
|
};
|
|
|
|
}
|