mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, pkgconfig, cmake,
|
|
libzip, boost, fftw, qtbase,
|
|
libusb, wrapQtAppsHook, libsigrok4dsl, libsigrokdecode4dsl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dsview";
|
|
|
|
version = "0.99";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DreamSourceLab";
|
|
repo = "DSView";
|
|
rev = version;
|
|
sha256 = "189i3baqgn8k3aypalayss0g489xi0an9hmvyggvxmgg1cvcwka2";
|
|
};
|
|
|
|
postUnpack = ''
|
|
export sourceRoot=$sourceRoot/DSView
|
|
'';
|
|
|
|
patches = [
|
|
# Fix absolute install paths
|
|
./install.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
|
|
|
|
buildInputs = [
|
|
boost fftw qtbase libusb libzip libsigrokdecode4dsl libsigrok4dsl
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.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 = [ maintainers.bachp ];
|
|
};
|
|
}
|