summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-08-18 08:24:07 +0100
committerGitHub <noreply@github.com>2018-08-18 08:24:07 +0100
commitb9fafcfc3020580be1cefac93d8fe4cefe9135f5 (patch)
tree484aa14f2c4243e3f5087dc4e8a6e966a3646486 /pkgs/applications/misc
parent5828cb3af7ee2ebe7dc460f778dc2300259ea7c4 (diff)
parentacd1551478261989a81688c2347bee1d47ec88a8 (diff)
downloadnixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.tar
nixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.tar.gz
nixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.tar.bz2
nixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.tar.lz
nixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.tar.xz
nixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.tar.zst
nixlib-b9fafcfc3020580be1cefac93d8fe4cefe9135f5.zip
Merge pull request #44323 from hax404/add/qsstv
qsstv: init 9.2.6
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/qsstv/default.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/applications/misc/qsstv/default.nix b/pkgs/applications/misc/qsstv/default.nix
new file mode 100644
index 000000000000..c8401cdbf49e
--- /dev/null
+++ b/pkgs/applications/misc/qsstv/default.nix
@@ -0,0 +1,54 @@
+{ stdenv, fetchurl, qtbase, qmake, makeDesktopItem, openjpeg, pkgconfig, fftw,
+  libpulseaudio, alsaLib, hamlib, libv4l, fftwFloat }:
+
+stdenv.mkDerivation rec {
+  version = "9.2.6";
+  name = "qsstv-${version}";
+
+  src = fetchurl {
+    url = "http://users.telenet.be/on4qz/qsstv/downloads/qsstv_${version}.tar.gz";
+    sha256 = "0sx70yk389fq5djvjwnam6ics5knmg9b5x608bk2sjbfxkila108";
+  };
+
+  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 = ''
+    # Install binary to the right location
+    make install INSTALL_ROOT=$out
+    mv $out/usr/bin $out/
+    rm -r $out/usr
+
+    # 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 ];
+  };
+}
+