depot/third_party/nixpkgs/pkgs/applications/science/electronics/dsview/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

39 lines
1.1 KiB
Nix

{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
, libzip, boost, fftw, libusb1, qtbase, qtsvg, qtwayland
, python3, desktopToDarwinBundle
}:
stdenv.mkDerivation rec {
pname = "dsview";
version = "1.3.2";
src = fetchFromGitHub {
owner = "DreamSourceLab";
repo = "DSView";
rev = "v${version}";
sha256 = "sha256-d/TfCuJzAM0WObOiBhgfsTirlvdROrlCm+oL1cqUrIs=";
};
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 = "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 ];
};
}