9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, mkDerivation, fetchFromGitHub, pkg-config, cmake
|
|
, libzip, boost, fftw, qtbase, libusb1, libsigrok4dsl
|
|
, libsigrokdecode4dsl, python3, fetchpatch
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "dsview";
|
|
|
|
version = "1.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = "v${version}";
|
|
sha256 = "q7F4FuK/moKkouXTNPZDVon/W/ZmgtNHJka4MiTxA0U=";
|
|
};
|
|
|
|
sourceRoot = "source/DSView";
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
|
|
# Fix buld with Qt5.15 already merged upstream for future release
|
|
# Using local file instead of content of commit #33e3d896a47 because
|
|
# sourceRoot make it unappliable
|
|
./qt515.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl
|
|
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 ];
|
|
};
|
|
}
|