about summary refs log tree commit diff
path: root/release-common.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-07-03T16·15+0200
committerEelco Dolstra <edolstra@gmail.com>2018-07-03T16·39+0200
commit3b1f54cf06b6127a14479d18db8f08dc4c05d57a (patch)
treede6b77ac069b28b6af3d74ab0104518a7a1839d4 /release-common.nix
parenta92ed973e569324b55cddb128f6f638f3ea1985c (diff)
Add a fromTOML primop
This is primarily useful for processing Cargo.lock files.
Diffstat (limited to 'release-common.nix')
-rw-r--r--release-common.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/release-common.nix b/release-common.nix
index f98e86a1b444..4aa18d4ee024 100644
--- a/release-common.nix
+++ b/release-common.nix
@@ -2,6 +2,23 @@
 
 with pkgs;
 
+let
+
+  cpptoml = runCommand "cpptoml"
+    { src = fetchFromGitHub {
+        owner = "skystrife";
+        repo = "cpptoml";
+        rev = "43d7d8e52de149fd84aedf7eb71814ff9e6b2f7e";
+        sha256 = "0gdxk1mj5hpj93df1kwfl903w06nihbb1ayr3x336775jm2d2cw6";
+      };
+    }
+    ''
+      mkdir -p $out/include
+      cp $src/include/cpptoml.h $out/include/
+    '';
+
+in
+
 rec {
   # Use "busybox-sandbox-shell" if present,
   # if not (legacy) fallback and hope it's sufficient.
@@ -52,6 +69,7 @@ rec {
       bzip2 xz brotli
       openssl pkgconfig sqlite boehmgc
       boost
+      cpptoml
 
       # Tests
       git