Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, pkg-config 6, libpng 7, libsndfile 8}: 9 10stdenv.mkDerivation rec { 11 pname = "aptdec"; 12 version = "1.8.0"; 13 14 src = fetchFromGitHub { 15 owner = "Xerbo"; 16 repo = "aptdec"; 17 rev = "v${version}"; 18 hash = "sha256-5Pr2PlCPSEIWnThJXKcQEudmxhLJC2sVa9BfAOEKHB4="; 19 fetchSubmodules = true; 20 }; 21 22 nativeBuildInputs = [ cmake pkg-config ]; 23 buildInputs = [ libpng libsndfile ]; 24 25 meta = with lib; { 26 description = "NOAA APT satellite imagery decoding library"; 27 homepage = "https://github.com/Xerbo/aptdec"; 28 license = licenses.gpl2; 29 maintainers = with maintainers; [ alexwinter ]; 30 platforms = platforms.unix; 31 }; 32}