pulseview: use mkDerivation

This commit is contained in:
Peter Hoeg 2019-08-19 13:52:05 +08:00 committed by Bjørn Forsman
parent f72d2041b7
commit 374e0ad0a8

View File

@ -1,13 +1,14 @@
{ stdenv, fetchurl, pkgconfig, cmake, glib, boost, libsigrok { mkDerivation, lib, fetchurl, pkgconfig, cmake, glib, boost, libsigrok
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm , libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
, pcre, librevisa, python3, qtbase, qtsvg , pcre, librevisa, python3, qtbase, qtsvg
}: }:
stdenv.mkDerivation rec { mkDerivation rec {
name = "pulseview-0.4.1"; pname = "pulseview";
version = "0.4.1";
src = fetchurl { src = fetchurl {
url = "https://sigrok.org/download/source/pulseview/${name}.tar.gz"; url = "https://sigrok.org/download/source/pulseview/${pname}-${version}.tar.gz";
sha256 = "0bvgmkgz37n2bi9niskpl05hf7rsj1lj972fbrgnlz25s4ywxrwy"; sha256 = "0bvgmkgz37n2bi9niskpl05hf7rsj1lj972fbrgnlz25s4ywxrwy";
}; };
@ -15,16 +16,15 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm
pcre librevisa python3 qtbase qtsvg pcre librevisa python3
qtbase qtsvg
]; ];
enableParallelBuilding = true; meta = with lib; {
meta = with stdenv.lib; {
description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)"; description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)";
homepage = https://sigrok.org/; homepage = https://sigrok.org/;
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
}; };
} }