1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2024-12-14 11:07:30 +00:00
org-babel/flake.nix
Akira Komamura d3c44b7fec fix!: Provide the file writer in an overlay
builtins.toFile doesn't work in pure evaluation mode. It must use
a function from nixpkgs, so it should be provided in an overlay.
2021-12-12 05:18:46 +09:00

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));
};
};
}