Skip to content

AIS Catcher for NixOS Package #492

@maciejurbanowicz

Description

@maciejurbanowicz

Hi,

I've been using AIS Catcher for couple of months on my RPI5 (Ubuntu) and I do some experiments on my old laptop (NixOS).
I have managed to create a nix file that was successfully used to compile AIS Catcher from the sources and install on NixOS.

I think that it'd be great to share my nix file. I'd also like to propose that AIS Catcher is included in the NixOS Package repo. More info here: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md.

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, rtl-sdr
, airspy
, airspyhf
, hackrf
, zeromq
, openssl
, zlib
, soxr
, libsamplerate
}:

stdenv.mkDerivation rec {
  pname = "ais-catcher";
  version = "0.66";  # latest release per upstream

  src = fetchFromGitHub {
    owner = "jvde-github";
    repo = "AIS-catcher";
    rev = "v${version}";
    # Replace the following with the real hash when you fetch it
    sha256 = "10vyjpjc4wzwyj8j1qkzr1byzk9n0rmrwbji1h4kahm50pj9pviv";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    rtl-sdr
    airspy
    airspyhf
    hackrf
    zeromq
    openssl
    zlib
    soxr
    libsamplerate
  ];

  cmakeFlags = [
    "-DCMAKE_BUILD_TYPE=Release"
  ];

  meta = with lib; {
    description = "Multi-platform AIS receiver for SDR devices";
    homepage = "https://github.com/jvde-github/AIS-catcher";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ];
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions