nixpkgs/pkgs/development/libraries/aptdec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
825 B
Nix
Raw Normal View History

2022-04-17 11:49:24 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, libpng, libsndfile
}:
stdenv.mkDerivation {
pname = "aptdec";
version = "unstable-2022-05-18";
src = fetchFromGitHub {
owner = "Xerbo";
repo = "aptdec";
rev = "b1cc7480732349a7c772124f984b58f4c734c91b";
sha256 = "sha256-Fi9IkZcvqxpmHzqucpCr++37bmTtMy18P4LPznoaYIY=";
};
# fixes https://github.com/Xerbo/aptdec/issues/15
postPatch = ''
substituteInPlace CMakeLists.txt --replace "-Werror" ""
'';
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;
2022-04-17 11:49:24 +00:00
};
}