2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, libpng
|
|
|
|
, libsndfile
|
2022-09-22 12:36:57 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-09-22 12:36:57 +00:00
|
|
|
pname = "aptdec";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.8.0";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Xerbo";
|
|
|
|
repo = "aptdec";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-5Pr2PlCPSEIWnThJXKcQEudmxhLJC2sVa9BfAOEKHB4=";
|
|
|
|
fetchSubmodules = true;
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libpng libsndfile ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "NOAA APT satellite imagery decoding library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "aptdec";
|
2022-09-22 12:36:57 +00:00
|
|
|
homepage = "https://github.com/Xerbo/aptdec";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ alexwinter ];
|
2023-03-24 00:07:29 +00:00
|
|
|
platforms = platforms.unix;
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
}
|