nixpkgs-suyu/pkgs/development/libraries/aptdec/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
709 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";
mainProgram = "aptdec";
homepage = "https://github.com/Xerbo/aptdec";
license = licenses.gpl2;
maintainers = with maintainers; [ alexwinter ];
platforms = platforms.unix;
};
}