Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

satdump: init at 1.2.2 #369540

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22628,6 +22628,11 @@
githubId = 1220572;
name = "Christian Theune";
};
theverygaming = {
theverygaming marked this conversation as resolved.
Show resolved Hide resolved
name = "theverygaming";
github = "theverygaming";
githubId = 18639279;
};
thiagokokada = {
email = "[email protected]";
github = "thiagokokada";
Expand Down
5 changes: 4 additions & 1 deletion pkgs/by-name/nn/nng/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ stdenv.mkDerivation rec {
buildInputs = lib.optionals mbedtlsSupport [ mbedtls ];

cmakeFlags =
[ "-G Ninja" ]
[
"-G Ninja"
"-DBUILD_SHARED_LIBS=ON"
]
++ lib.optionals mbedtlsSupport [
"-DMBEDTLS_ROOT_DIR=${mbedtls}"
"-DNNG_ENABLE_TLS=ON"
Expand Down
109 changes: 109 additions & 0 deletions pkgs/by-name/sa/satdump/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
lib,
stdenv,
fetchFromGitHub,
gitUpdater,
cmake,
pkg-config,
# required dependencies
fftwFloat,
libpng,
libtiff,
jemalloc,
volk,
nng,
curl,
# Optional dependencies
withZIQRecordingCompression ? true,
zstd,
withGUI ? true,
glfw,
zenity,
withAudio ? true,
portaudio,
withOfficialProductSupport ? true,
hdf5,
withOpenCL ? true,
opencl-headers,
ocl-icd,
withSourceRtlsdr ? true,
rtl-sdr-librtlsdr,
withSourceHackRF ? true,
hackrf,
withSourceAirspy ? true,
airspy,
withSourceAirspyHF ? true,
airspyhf,
withSourceAD9361 ? true,
libad9361,
libiio,
withSourceBladeRF ? true,
libbladeRF,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "satdump";
version = "1.2.2";

src = fetchFromGitHub {
owner = "SatDump";
repo = "SatDump";
tag = finalAttrs.version;
hash = "sha256-+Sne+NMwnIAs3ff64fBHAIE4/iDExIC64sXtO0LJwI0=";
};

nativeBuildInputs = [
cmake
pkg-config
];

buildInputs =
[
fftwFloat
libpng
libtiff
jemalloc
volk
nng
curl
]
++ lib.optional withZIQRecordingCompression zstd
++ lib.optionals withGUI [
glfw
zenity
]
++ lib.optional withAudio portaudio
++ lib.optional withOfficialProductSupport hdf5
++ lib.optionals withOpenCL [
opencl-headers
ocl-icd
]
++ lib.optional withSourceRtlsdr rtl-sdr-librtlsdr
++ lib.optional withSourceHackRF hackrf
++ lib.optional withSourceAirspy airspy
++ lib.optional withSourceAirspyHF airspyhf
++ lib.optionals withSourceAD9361 [
libad9361
libiio
]
++ lib.optional withSourceBladeRF libbladeRF;

postPatch = ''
substituteInPlace src-core/CMakeLists.txt \
--replace-fail '$'{CMAKE_INSTALL_PREFIX}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR}
'';

passthru.updateScript = gitUpdater { };

theverygaming marked this conversation as resolved.
Show resolved Hide resolved
meta = {
description = "A generic satellite data processing software";
homepage = "https://www.satdump.org/";
changelog = "https://github.com/SatDump/SatDump/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
theverygaming
];
mainProgram = "satdump";
};
})
Loading