diff options
author | Alex Winter <git@alexwinter.net> | 2022-04-17 13:49:24 +0200 |
---|---|---|
committer | Matthew Leach <matthew@mattleach.net> | 2022-09-11 12:48:26 +0100 |
commit | 5de43b65386124be85314ba9464dc4f4f51075d9 (patch) | |
tree | 8e24a26f6073bdb7b4a415c49299a964921c781e /pkgs/development/libraries/aptdec | |
parent | 3d0331112d1fd9a014b31c50542a5b1bdd59e0cf (diff) |
aptdec: init at 20220518
Diffstat (limited to 'pkgs/development/libraries/aptdec')
-rw-r--r-- | pkgs/development/libraries/aptdec/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/aptdec/default.nix b/pkgs/development/libraries/aptdec/default.nix new file mode 100644 index 0000000000000..5f1db6d355936 --- /dev/null +++ b/pkgs/development/libraries/aptdec/default.nix @@ -0,0 +1,31 @@ +{ 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.linux; + }; +} |