depot/third_party/nixpkgs/pkgs/development/libraries/aptdec/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

32 lines
681 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, libpng
, libsndfile
}:
stdenv.mkDerivation rec {
pname = "aptdec";
version = "1.8.0";
src = fetchFromGitHub {
owner = "Xerbo";
repo = "aptdec";
rev = "v${version}";
hash = "sha256-5Pr2PlCPSEIWnThJXKcQEudmxhLJC2sVa9BfAOEKHB4=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libpng libsndfile ];
meta = with lib; {
description = "NOAA APT satellite imagery decoding library";
homepage = "https://github.com/Xerbo/aptdec";
license = licenses.gpl2;
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.unix;
};
}