summary refs log tree commit diff
path: root/pkgs/development/libraries/yas/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/yas/default.nix')
-rw-r--r--pkgs/development/libraries/yas/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/yas/default.nix b/pkgs/development/libraries/yas/default.nix
new file mode 100644
index 00000000000..137693401eb
--- /dev/null
+++ b/pkgs/development/libraries/yas/default.nix
@@ -0,0 +1,28 @@
+{ lib, stdenvNoCC, fetchFromGitHub }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "yas";
+  version = "7.1.0";
+
+  src = fetchFromGitHub {
+    owner = "niXman";
+    repo = "yas";
+    rev = version;
+    hash = "sha256-2+CpftWOEnntYBCc1IoR5eySbmhrMVunpUTZRdQ5I+A=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/include/yas
+    cp -r include/yas/* $out/include/yas
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/niXman/yas";
+    description = "Yet Another Serialization";
+    license = licenses.boost;
+    maintainers = with maintainers; [ ee2500 ];
+    platforms = platforms.all;
+  };
+}