anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / science / electronics / dsview / default.nix
blob48a94468ef0b2fcd3e6104c077ff958afe6bfcf7
1 { stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
2 , libzip, boost, fftw, libusb1, qtbase, qtsvg, qtwayland
3 , python3, desktopToDarwinBundle
4 }:
6 stdenv.mkDerivation rec {
7   pname = "dsview";
9   version = "1.3.2";
11   src = fetchFromGitHub {
12       owner = "DreamSourceLab";
13       repo = "DSView";
14       rev = "v${version}";
15       sha256 = "sha256-d/TfCuJzAM0WObOiBhgfsTirlvdROrlCm+oL1cqUrIs=";
16   };
18   patches = [
19     # Fix absolute install paths
20     ./install.patch
21   ];
23   nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]
24     ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
26   buildInputs = [
27     boost fftw qtbase qtsvg libusb1 libzip
28     python3
29   ] ++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
31   meta = with lib; {
32     description = "GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
33     mainProgram = "DSView";
34     homepage = "https://www.dreamsourcelab.com/";
35     license = licenses.gpl3Plus;
36     platforms = platforms.unix;
37     maintainers = with maintainers; [ bachp carlossless ];
38   };