2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, qtbase, qmake, openjpeg, pkg-config, fftw,
|
2021-06-10 03:57:09 +01:00
|
|
|
libpulseaudio, alsa-lib, hamlib, libv4l, fftwFloat }:
|
2018-07-31 20:22:08 +01:00
|
|
|
|
2020-01-05 14:33:15 +00:00
|
|
|
mkDerivation rec {
|
2022-02-08 14:00:44 +00:00
|
|
|
version = "9.5.8";
|
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";
|
2022-02-08 14:00:44 +00:00
|
|
|
sha256 = "0s3sivc0xan6amibdiwfnknrl3248wzgy98w6gyxikl0qsjpygy0";
|
2018-07-31 20:22:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2018-07-31 20:22:08 +01:00
|
|
|
];
|
|
|
|
|
2021-06-10 03:57:09 +01:00
|
|
|
buildInputs = [ qtbase openjpeg fftw libpulseaudio alsa-lib hamlib libv4l
|
2018-07-31 20:22:08 +01:00
|
|
|
fftwFloat ];
|
|
|
|
|
2020-01-05 14:40:04 +00:00
|
|
|
postInstall = ''
|
2018-07-31 20:22:08 +01:00
|
|
|
# Install desktop icon
|
2022-02-08 14:00:44 +00:00
|
|
|
install -D icons/qsstv.png $out/share/pixmaps/qsstv.png
|
|
|
|
install -D qsstv.desktop $out/share/applications/qsstv.desktop
|
2018-07-31 20:22:08 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-31 20:22:08 +01:00
|
|
|
description = "Qt-based slow-scan TV and fax";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://users.telenet.be/on4qz/";
|
2018-07-31 20:22:08 +01:00
|
|
|
platforms = platforms.linux;
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ hax404 ];
|
2018-07-31 20:22:08 +01:00
|
|
|
};
|
|
|
|
}
|