c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
37 lines
950 B
Nix
37 lines
950 B
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
|
|
, libzip, boost, fftw, qtbase, qtwayland, qtsvg, libusb1
|
|
, python3, fetchpatch
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dsview";
|
|
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-wnBVhZ3Ky9PXs48OVvSbD1aAUSEqAwaNLg7Ntim7yFM=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
|
|
|
buildInputs = [
|
|
boost fftw qtbase qtwayland qtsvg libusb1 libzip
|
|
python3
|
|
];
|
|
|
|
meta = with lib; {
|
|
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;
|
|
maintainers = with maintainers; [ bachp ];
|
|
};
|
|
}
|