01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
37 lines
884 B
Nix
37 lines
884 B
Nix
{ lib, mkDerivation, fetchFromGitHub, pkg-config, cmake
|
|
, libzip, boost, fftw, qtbase, libusb1
|
|
, python3, fetchpatch
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "dsview";
|
|
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-TE2yfzv2h77GLMkmoVGXmzs7J0l/N+n1eYxyrtnrnGU=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
boost fftw qtbase 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 ];
|
|
};
|
|
}
|