From 18fa28319f4cdca933da8f413a3e3bcfb36d37b0 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 17 Feb 2022 01:35:47 +0300 Subject: [PATCH] refactor: use runCommandLocal for parseMarkdown / site path drvs --- pkgs-lib.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs-lib.nix b/pkgs-lib.nix index 174fee8..1471e32 100644 --- a/pkgs-lib.nix +++ b/pkgs-lib.nix @@ -18,13 +18,13 @@ let mkCreateFileCmd = path: value: let p = concatStringsSep "/" (init path); in "mkdir -p \"$out/${p}\" && ln -s \"${value}\" \"$out/${p}/${last path}\""; createFileCmds = map (path: mkCreateFileCmd path (getAttrFromPath path texts)) fileAttrPaths; in - pkgs.runCommand "site-path" { } '' + pkgs.runCommandLocal "site-path" { } '' mkdir -p $out ${concatStringsSep "\n" createFileCmds} ''; parseMarkdown = name: contents: - pkgs.runCommand name { } '' + pkgs.runCommandLocal name { } '' printf ${pkgs.lib.escapeShellArg contents} | ${pkgBin "pandoc"} -f gfm > $out ''; in