default.nix (853B)
1 { lib 2 , stdenv 3 , fetchFromGitHub 4 , cmake 5 , pkg-config 6 , airspy 7 , airspyhf 8 , hackrf 9 , libsamplerate 10 , openssl 11 , rtl-sdr 12 , soxr 13 , zeromq 14 , zlib 15 }: 16 17 stdenv.mkDerivation (finalAttrs: { 18 pname = "ais-catcher"; 19 version = "0.58"; 20 21 src = fetchFromGitHub { 22 owner = "jvde-github"; 23 repo = "AIS-catcher"; 24 rev = "v${finalAttrs.version}"; 25 hash = "sha256-7kN3EVyjlktnU7mhQa3emD8zqf9OSlzoh4xW8LLpvL8="; 26 }; 27 28 nativeBuildInputs = [ cmake pkg-config ]; 29 30 buildInputs = [ 31 airspy 32 airspyhf 33 hackrf 34 libsamplerate 35 openssl 36 rtl-sdr 37 soxr 38 zeromq 39 zlib 40 ]; 41 42 meta = with lib; { 43 description = "A multi-platform AIS Receiver"; 44 inherit (finalAttrs.src.meta) homepage; 45 license = licenses.gpl3Plus; 46 maintainers = [ maintainers.sikmir ]; 47 platforms = platforms.unix; 48 mainProgram = "AIS-catcher"; 49 }; 50 })