mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Add a fromTOML primop
This is primarily useful for processing Cargo.lock files.
This commit is contained in:
parent
a92ed973e5
commit
3b1f54cf06
4 changed files with 280 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue