Merge pull request #76991 from hax404/qsstv
qsstv: 9.2.6 -> 9.4.4; cleanup
This commit is contained in:
commit
568fd9c191
1 changed files with 5 additions and 23 deletions
|
@ -1,13 +1,13 @@
|
||||||
{ stdenv, fetchurl, qtbase, qmake, makeDesktopItem, openjpeg, pkgconfig, fftw,
|
{ mkDerivation, stdenv, fetchurl, qtbase, qmake, openjpeg, pkgconfig, fftw,
|
||||||
libpulseaudio, alsaLib, hamlib, libv4l, fftwFloat }:
|
libpulseaudio, alsaLib, hamlib, libv4l, fftwFloat }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
version = "9.2.6";
|
version = "9.4.4";
|
||||||
pname = "qsstv";
|
pname = "qsstv";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz";
|
url = "http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz";
|
||||||
sha256 = "0sx70yk389fq5djvjwnam6ics5knmg9b5x608bk2sjbfxkila108";
|
sha256 = "0f9hx6sy418cb23fadll298pqbc5l2lxsdivi4vgqbkvx7sw58zi";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -20,27 +20,9 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ qtbase openjpeg fftw libpulseaudio alsaLib hamlib libv4l
|
buildInputs = [ qtbase openjpeg fftw libpulseaudio alsaLib hamlib libv4l
|
||||||
fftwFloat ];
|
fftwFloat ];
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
postInstall = ''
|
||||||
name = "QSSTV";
|
|
||||||
exec = "qsstv";
|
|
||||||
icon = "qsstv.png";
|
|
||||||
comment = "Qt-based slow-scan TV and fax";
|
|
||||||
desktopName = "QSSTV";
|
|
||||||
genericName = "qsstv";
|
|
||||||
categories = "Application;HamRadio;";
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
# Install binary to the right location
|
|
||||||
make install INSTALL_ROOT=$out
|
|
||||||
mv $out/usr/bin $out/
|
|
||||||
rm -r $out/usr
|
|
||||||
|
|
||||||
# Install desktop icon
|
# Install desktop icon
|
||||||
install -D qsstv/icons/qsstv.png $out/share/pixmaps/qsstv.png
|
install -D qsstv/icons/qsstv.png $out/share/pixmaps/qsstv.png
|
||||||
|
|
||||||
# Install desktop item
|
|
||||||
cp -rv ${desktopItem}/share $out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue