2023-08-22 20:05:09 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
|
|
|
|
, libzip, boost, fftw, qtbase, qtwayland, qtsvg, libusb1
|
2024-02-07 01:22:34 +00:00
|
|
|
, python3, fetchpatch, desktopToDarwinBundle
|
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-11-16 04:20:00 +00:00
|
|
|
version = "1.3.1";
|
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-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-LwrlB+Nwq34YjwGmnbUWS3W//ZHr8Do2Wf2te+2oBeI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix absolute install paths
|
|
|
|
./install.patch
|
|
|
|
];
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]
|
|
|
|
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2024-02-07 01:22:34 +00:00
|
|
|
boost fftw qtbase qtsvg libusb1 libzip
|
2020-11-30 08:33:03 +00:00
|
|
|
python3
|
2024-02-07 01:22:34 +00:00
|
|
|
] ++ lib.optional stdenv.isLinux qtwayland;
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "DSView";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.dreamsourcelab.com/";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-02-07 01:22:34 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bachp carlossless ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|