587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
|
|
, libzip, boost, fftw, qtbase, qtwayland, qtsvg, libusb1
|
|
, python3, fetchpatch, desktopToDarwinBundle
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dsview";
|
|
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-LwrlB+Nwq34YjwGmnbUWS3W//ZHr8Do2Wf2te+2oBeI=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]
|
|
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
|
|
|
buildInputs = [
|
|
boost fftw qtbase qtsvg libusb1 libzip
|
|
python3
|
|
] ++ lib.optional stdenv.isLinux qtwayland;
|
|
|
|
meta = with lib; {
|
|
description = "A GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
|
|
mainProgram = "DSView";
|
|
homepage = "https://www.dreamsourcelab.com/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ bachp carlossless ];
|
|
};
|
|
}
|