mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 11:44:02 +00:00
29 lines
696 B
Nix
29 lines
696 B
Nix
{ lib, fetchFromGitHub, stdenv, zlib, ninja, meson, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libspng";
|
|
version = "0.7.0-rc3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "randy408";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0n91mr06sr34cqq91738251iaw21h5c4jgjpn0kqfx69ywxcl9fj";
|
|
};
|
|
|
|
mesonBuildType = "release";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
outputBin = "dev";
|
|
|
|
buildInputs = [ pkg-config zlib ];
|
|
nativeBuildInputs = [ ninja meson ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple, modern libpng alternative";
|
|
homepage = "https://github.com/randy408/libspng";
|
|
license = with licenses; [ bsd2 ];
|
|
maintainers = with maintainers; [ humancalico ];
|
|
};
|
|
}
|