summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshat Agarwal <humancalico@disroot.org>2021-08-31 14:22:01 +0530
committerRaphael Megzari <raphael@megzari.com>2021-09-08 12:50:47 +0900
commit7f0848482049ad01a33d45e1d48e5f181fd3ed77 (patch)
tree216611495b4b7de5ad29dff95c622c9ac68e93f8
parent8882ec6ff968a2f10d9d9ec2ab695791859e0852 (diff)
libspng: init at 0.7.0-rc3
-rw-r--r--pkgs/development/libraries/libspng/default.nix28
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libspng/default.nix b/pkgs/development/libraries/libspng/default.nix
new file mode 100644
index 000000000000..3ca8e2d2904d
--- /dev/null
+++ b/pkgs/development/libraries/libspng/default.nix
@@ -0,0 +1,28 @@
+{ 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 ];
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cd2a6f1d5805..c2c894ea6615 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -17424,6 +17424,8 @@ with pkgs;
libspiro = callPackage ../development/libraries/libspiro {};
+ libspng = callPackage ../development/libraries/libspng { };
+
libssh = callPackage ../development/libraries/libssh { };
libssh2 = callPackage ../development/libraries/libssh2 { };