mirror of
https://github.com/emacs-twist/org-babel.git
synced 2024-12-14 11:07:30 +00:00
d3c44b7fec
builtins.toFile doesn't work in pure evaluation mode. It must use a function from nixpkgs, so it should be provided in an overlay.
16 lines
367 B
Nix
16 lines
367 B
Nix
{
|
|
description = "Nix library for extracting source blocks from Org";
|
|
|
|
outputs = { ... }:
|
|
let
|
|
lib = import ./nix;
|
|
in
|
|
{
|
|
inherit lib;
|
|
overlay = _: pkgs: {
|
|
tangleOrgBabelFile = name: path: options:
|
|
pkgs.writeText name
|
|
(lib.tangleOrgBabel options (builtins.readFile path));
|
|
};
|
|
};
|
|
}
|