diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-09-13 11:53:06 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-09-13 17:18:49 +0000 |
commit | c3e005913d59b8ad64004e60888a71816688af1f (patch) | |
tree | f65b32f0d16acaa40f2ee82ac736d150de4b6cf5 /nixpkgs/pkgs/development/libraries/libspng | |
parent | 1c8034da05499ca3d999f57ba1f6b235e7711ee1 (diff) | |
parent | db88608d8c811a93b74c99cfa1224952afc78200 (diff) | |
download | nixlib-c3e005913d59b8ad64004e60888a71816688af1f.tar nixlib-c3e005913d59b8ad64004e60888a71816688af1f.tar.gz nixlib-c3e005913d59b8ad64004e60888a71816688af1f.tar.bz2 nixlib-c3e005913d59b8ad64004e60888a71816688af1f.tar.lz nixlib-c3e005913d59b8ad64004e60888a71816688af1f.tar.xz nixlib-c3e005913d59b8ad64004e60888a71816688af1f.tar.zst nixlib-c3e005913d59b8ad64004e60888a71816688af1f.zip |
Merge commit 'db88608d8c811a93b74c99cfa1224952afc78200'
Conflicts: nixpkgs/nixos/modules/config/update-users-groups.pl
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libspng')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libspng/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libspng/default.nix b/nixpkgs/pkgs/development/libraries/libspng/default.nix new file mode 100644 index 000000000000..798a99371804 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libspng/default.nix @@ -0,0 +1,56 @@ +{ lib +, fetchFromGitHub +, stdenv +, zlib +, ninja +, meson +, pkg-config +, cmake +, libpng +}: + +stdenv.mkDerivation rec { + pname = "libspng"; + version = "0.7.0-rc3"; + + src = fetchFromGitHub { + owner = "randy408"; + repo = pname; + rev = "v${version}"; + sha256 = "0n91mr06sr34cqq91738251iaw21h5c4jgjpn0kqfx69ywxcl9fj"; + }; + + doCheck = true; + + mesonBuildType = "release"; + + mesonFlags = [ + # this is required to enable testing + # https://github.com/randy408/libspng/blob/bc383951e9a6e04dbc0766f6737e873e0eedb40b/tests/README.md#testing + "-Ddev_build=true" + ]; + + outputs = [ "out" "dev" ]; + + checkInputs = [ + cmake + libpng + ]; + + 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 ]; + }; +} |