Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
cmake,
|
|
wrapQtAppsHook,
|
|
libzip,
|
|
boost,
|
|
fftw,
|
|
libusb1,
|
|
qtbase,
|
|
qtsvg,
|
|
qtwayland,
|
|
python3,
|
|
desktopToDarwinBundle,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dsview";
|
|
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-d/TfCuJzAM0WObOiBhgfsTirlvdROrlCm+oL1cqUrIs=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
];
|
|
|
|
# /build/source/libsigrok4DSL/strutil.c:343:19: error: implicit declaration of function 'strcasecmp'; did you mean 'g_strcasecmp'? []
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
|
|
|
|
buildInputs = [
|
|
boost
|
|
fftw
|
|
qtbase
|
|
qtsvg
|
|
libusb1
|
|
libzip
|
|
python3
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isLinux qtwayland;
|
|
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc";
|
|
mainProgram = "DSView";
|
|
homepage = "https://www.dreamsourcelab.com/";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [
|
|
bachp
|
|
carlossless
|
|
];
|
|
};
|
|
})
|