1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

libspng: enable tests

This commit is contained in:
DavHau 2021-09-07 14:41:39 +02:00 committed by Raphael Megzari
parent 7f08484820
commit 172edcb426

View file

@ -1,4 +1,13 @@
{ lib, fetchFromGitHub, stdenv, zlib, ninja, meson, pkg-config }:
{ lib
, fetchFromGitHub
, stdenv
, zlib
, ninja
, meson
, pkg-config
, cmake
, libpng
}:
stdenv.mkDerivation rec {
pname = "libspng";
@ -11,13 +20,32 @@ stdenv.mkDerivation rec {
sha256 = "0n91mr06sr34cqq91738251iaw21h5c4jgjpn0kqfx69ywxcl9fj";
};
doCheck = true;
mesonBuildType = "release";
outputs = [ "out" "dev" ];
outputBin = "dev";
mesonFlags = [
# this is required to enable testing
# https://github.com/randy408/libspng/blob/bc383951e9a6e04dbc0766f6737e873e0eedb40b/tests/README.md#testing
"-Ddev_build=true"
];
buildInputs = [ pkg-config zlib ];
nativeBuildInputs = [ ninja meson ];
outputs = [ "out" "dev" ];
checkInputs = [
cmake
libpng
];
buildInputs = [
pkg-config
zlib
];
nativeBuildInputs = [
ninja
meson
];
meta = with lib; {
description = "Simple, modern libpng alternative";