From 5de43b65386124be85314ba9464dc4f4f51075d9 Mon Sep 17 00:00:00 2001 From: Alex Winter Date: Sun, 17 Apr 2022 13:49:24 +0200 Subject: [PATCH] aptdec: init at 20220518 --- pkgs/development/libraries/aptdec/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/aptdec/default.nix diff --git a/pkgs/development/libraries/aptdec/default.nix b/pkgs/development/libraries/aptdec/default.nix new file mode 100644 index 000000000000..5f1db6d35593 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 70fa0484119e..ad4e9fa64b3d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2842,6 +2842,8 @@ with pkgs; apprise = with python3Packages; toPythonApplication apprise; + aptdec = callPackage ../development/libraries/aptdec {}; + aria2 = callPackage ../tools/networking/aria2 { inherit (darwin.apple_sdk.frameworks) Security; };