2023-08-22 20:05:09 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
|
2024-06-24 18:47:55 +00:00
|
|
|
, libzip, boost, fftw, libusb1, qtbase, qtsvg, qtwayland
|
2024-06-05 15:53:02 +00:00
|
|
|
, python3, 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";
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "1.3.2";
|
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}";
|
2024-06-24 18:47:55 +00:00
|
|
|
sha256 = "sha256-d/TfCuJzAM0WObOiBhgfsTirlvdROrlCm+oL1cqUrIs=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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
|
|
|
};
|
|
|
|
}
|