mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|