about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorJames Earl Douglas <james@earldouglas.com>2017-10-18 19:45:40 -0600
committerOrivej Desh <orivej@gmx.fr>2017-11-05 04:30:26 +0000
commit7d52814ba56bcb3bf41c3d0a2e6186a1b9930311 (patch)
tree57ed4b700d7217159850639d521affe0e432c3dd /pkgs/applications/misc
parent0c104e40cbfbca348baa4c84dbac8716c6edb668 (diff)
downloadnixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.tar
nixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.tar.gz
nixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.tar.bz2
nixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.tar.lz
nixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.tar.xz
nixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.tar.zst
nixlib-7d52814ba56bcb3bf41c3d0a2e6186a1b9930311.zip
dump1090: init at 2014-10-31
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/dump1090/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/misc/dump1090/default.nix b/pkgs/applications/misc/dump1090/default.nix
new file mode 100644
index 000000000000..3e9fe133d93c
--- /dev/null
+++ b/pkgs/applications/misc/dump1090/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub, pkgconfig, libusb, rtl-sdr }:
+
+stdenv.mkDerivation rec {
+  name = "dump1090-${version}";
+  version = "2014-10-31";
+
+  src = fetchFromGitHub {
+    owner = "MalcolmRobb";
+    repo = "dump1090";
+    rev = "bff92c4ad772a0a8d433f788d39dae97e00e4dbe";
+    sha256 = "06aaj9gpz5v4qzvnp8xf18wdfclp0jvn3hflls79ly46gz2dh9hy";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+
+  buildInputs = [ libusb rtl-sdr ];
+
+  makeFlags = [ "PREFIX=$out" ];
+
+  installPhase = ''
+    mkdir -p $out/bin $out/share
+    cp -v dump1090 $out/bin/dump1090
+    cp -vr public_html $out/share/dump1090
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A simple Mode S decoder for RTLSDR devices";
+    homepage = https://github.com/MalcolmRobb/dump1090;
+    license = licenses.bsd3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ earldouglas ];
+  };
+}