mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
40 lines
673 B
Nix
40 lines
673 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromRepoOrCz
|
|
, cmake
|
|
, libGL
|
|
, libpng
|
|
, pkg-config
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "glpng";
|
|
version = "1.46";
|
|
|
|
src = fetchFromRepoOrCz {
|
|
repo = "glpng";
|
|
rev = "v${version}";
|
|
hash = "sha256-C7EHaBN0PE/HJB6zcIaYU63+o7/MEz4WU1xr/kIOanM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libGL
|
|
libpng
|
|
zlib
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://repo.or.cz/glpng.git/blob_plain/HEAD:/glpng.htm";
|
|
description = "PNG loader library for OpenGL";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|