mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
43 lines
1 KiB
Nix
43 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 ];
|
|
};
|
|
}
|