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