8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, pkgconfig, cmake,
|
|
libzip, boost, fftw, qtbase,
|
|
libusb1, wrapQtAppsHook, libsigrok4dsl, libsigrokdecode4dsl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dsview";
|
|
|
|
version = "0.99";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = version;
|
|
sha256 = "189i3baqgn8k3aypalayss0g489xi0an9hmvyggvxmgg1cvcwka2";
|
|
};
|
|
|
|
postUnpack = ''
|
|
export sourceRoot=$sourceRoot/DSView
|
|
'';
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
|
|
|
|
buildInputs = [
|
|
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.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 = [ maintainers.bachp ];
|
|
};
|
|
}
|