depot/third_party/nixpkgs/pkgs/applications/science/electronics/dsview/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 ];
};
}