about summary refs log tree commit diff
path: root/pkgs/development/libraries/libcyaml
diff options
context:
space:
mode:
authorСухарик <65870+suhr@users.noreply.github.com>2020-09-26 19:19:40 +0300
committerСухарик <65870+suhr@users.noreply.github.com>2021-02-09 17:27:28 +0300
commitc86127cd0319ae224ec3d449ecb57e4be6e0b510 (patch)
tree94437b30c2cb3c9e8d9922afd86f38adf562072e /pkgs/development/libraries/libcyaml
parentc4bc8f2cc4867f3282298b10ca1d5d01345c03a8 (diff)
libcyaml: init at 1.1.0
Diffstat (limited to 'pkgs/development/libraries/libcyaml')
-rw-r--r--pkgs/development/libraries/libcyaml/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libcyaml/default.nix b/pkgs/development/libraries/libcyaml/default.nix
new file mode 100644
index 0000000000000..b316b6b639565
--- /dev/null
+++ b/pkgs/development/libraries/libcyaml/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, lib, fetchFromGitHub
+, libyaml
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libcyaml";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    owner = "tlsa";
+    repo = "libcyaml";
+    rev = "v${version}";
+    sha256 = "0428p0rwq71nhh5nzcbapsbrjxa0x5l6h6ns32nxv7j624f0zd93";
+  };
+
+  buildInputs = [ libyaml ];
+
+  makeFlags = [ "VARIANT=release" "PREFIX=$(out)" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/tlsa/libcyaml";
+    description = "C library for reading and writing YAML";
+    license = licenses.isc;
+    platforms = platforms.linux;
+  };
+}