diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-07-03 18:15:59 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-07-03 18:39:36 +0200 |
commit | 3b1f54cf06b6127a14479d18db8f08dc4c05d57a (patch) | |
tree | de6b77ac069b28b6af3d74ab0104518a7a1839d4 /release-common.nix | |
parent | a92ed973e569324b55cddb128f6f638f3ea1985c (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.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/release-common.nix b/release-common.nix index f98e86a1b..4aa18d4ee 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 |