summary refs log tree commit diff
path: root/pkgs/development/gnuradio-modules/ais
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2020-10-16 23:31:20 +0300
committerDoron Behar <doron.behar@gmail.com>2021-03-13 12:46:59 +0200
commit2d08e55e9b8f96cf00466bd55fe0d132f1abd008 (patch)
tree1be9003486550aea9f8d92e6bf14eb3ca54af7df /pkgs/development/gnuradio-modules/ais
parent7690f9a312e49e56b6df443169e5bf2ea420e0a7 (diff)
downloadnixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar
nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.gz
nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.bz2
nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.lz
nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.xz
nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.tar.zst
nixpkgs-2d08e55e9b8f96cf00466bd55fe0d132f1abd008.zip
gnuradio.pkgs: init
- Write a `mkDerivation` and `mkDerivationWith` function for gnuradio,
  like qt5.
- qradiolink, gqrx: Use gnuradio's callPackage and mkDerivation.
- Use gnuradio.callPackage to define all gnuradio.pkgs.
- Move all gnuradio packages expressions to pkgs/development/gnuradio-modules/ -
  modeled after Python's.
- Add more paths to gnuradio's wrapper - add the extra packages as
  python modules, and add their executables with proper env vars
  wrapping.

Co-authored-by: Frederik Rietdijk <fridh@fridh.nl>
Diffstat (limited to 'pkgs/development/gnuradio-modules/ais')
-rw-r--r--pkgs/development/gnuradio-modules/ais/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/gnuradio-modules/ais/default.nix b/pkgs/development/gnuradio-modules/ais/default.nix
new file mode 100644
index 00000000000..0770d83f21d
--- /dev/null
+++ b/pkgs/development/gnuradio-modules/ais/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, stdenv
+, mkDerivation
+, fetchFromGitHub
+, cmake
+, pkg-config
+, python
+, boost
+, cppunit
+, log4cpp
+, osmosdr
+}:
+
+mkDerivation rec {
+  pname = "gr-ais";
+  version = "2015-12-20";
+  src = fetchFromGitHub {
+    owner = "bistromath";
+    repo = "gr-ais";
+    rev = "cdc1f52745853f9c739c718251830eb69704b26e";
+    sha256 = "1vl3kk8xr2mh5lf31zdld7yzmwywqffffah8iblxdzblgsdwxfl6";
+  };
+  disabledForGRafter = "3.8";
+
+  nativeBuildInputs = [
+    cmake
+    pkg-config
+    python
+  ];
+
+  buildInputs = [
+    cppunit
+    osmosdr
+    boost
+    log4cpp
+  ];
+
+  meta = with lib; {
+    description = "Gnuradio block for ais";
+    homepage = "https://github.com/bistromath/gr-ais";
+    license = licenses.gpl3Plus;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ mog ];
+  };
+}