2020-01-05 14:33:15 +00:00
|
|
|
{ mkDerivation, stdenv, fetchurl, qtbase, qmake, makeDesktopItem, openjpeg,
|
|
|
|
pkgconfig, fftw, libpulseaudio, alsaLib, hamlib, libv4l, fftwFloat }:
|
2018-07-31 20:22:08 +01:00
|
|
|
|
2020-01-05 14:33:15 +00:00
|
|
|
mkDerivation rec {
|
|
|
|
version = "9.4.4";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "qsstv";
|
2018-07-31 20:22:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz";
|
2020-01-05 14:33:15 +00:00
|
|
|
sha256 = "0f9hx6sy418cb23fadll298pqbc5l2lxsdivi4vgqbkvx7sw58zi";
|
2018-07-31 20:22:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase openjpeg fftw libpulseaudio alsaLib hamlib libv4l
|
|
|
|
fftwFloat ];
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "QSSTV";
|
|
|
|
exec = "qsstv";
|
|
|
|
icon = "qsstv.png";
|
|
|
|
comment = "Qt-based slow-scan TV and fax";
|
|
|
|
desktopName = "QSSTV";
|
|
|
|
genericName = "qsstv";
|
|
|
|
categories = "Application;HamRadio;";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-01-05 14:33:15 +00:00
|
|
|
# Install binary
|
|
|
|
make install
|
2018-07-31 20:22:08 +01:00
|
|
|
|
|
|
|
# Install desktop icon
|
|
|
|
install -D qsstv/icons/qsstv.png $out/share/pixmaps/qsstv.png
|
|
|
|
|
|
|
|
# Install desktop item
|
|
|
|
cp -rv ${desktopItem}/share $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt-based slow-scan TV and fax";
|
|
|
|
homepage = http://users.telenet.be/on4qz/;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ hax404 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|