mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
47 lines
864 B
Nix
47 lines
864 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libpng,
|
|
libsndfile,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "aptdec";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Xerbo";
|
|
repo = "aptdec";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-5Pr2PlCPSEIWnThJXKcQEudmxhLJC2sVa9BfAOEKHB4=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libpng
|
|
libsndfile
|
|
];
|
|
|
|
cmakeFlags = [ (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10") ];
|
|
|
|
meta = {
|
|
description = "NOAA APT satellite imagery decoding library";
|
|
mainProgram = "aptdec";
|
|
homepage = "https://github.com/Xerbo/aptdec";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [
|
|
aciceri
|
|
alexwinter
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|