depot/third_party/nixpkgs/pkgs/applications/science/electronics/dsview/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

37 lines
950 B
Nix

{ stdenv, lib, fetchFromGitHub, pkg-config, cmake, wrapQtAppsHook
, libzip, boost, fftw, qtbase, qtwayland, qtsvg, libusb1
, python3, fetchpatch
}:
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 ];
buildInputs = [
boost fftw qtbase qtwayland qtsvg libusb1 libzip
python3
];
meta = with 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 = with maintainers; [ bachp ];
};
}