diff options
author | Louis Bettens <louis@bettens.info> | 2021-02-20 10:16:45 +0100 |
---|---|---|
committer | Louis Bettens <louis@bettens.info> | 2021-02-20 10:55:37 +0100 |
commit | b76056aebcdddf7e68170a57314c4c6afd599d49 (patch) | |
tree | 79356c636c4a5258996ac2deccc7be9be9272176 | |
parent | 85c606d097f4b397cee6b5f751c65976eba8e8d8 (diff) |
spacevim: fix #110407
-rw-r--r-- | pkgs/applications/editors/spacevim/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/editors/spacevim/default.nix b/pkgs/applications/editors/spacevim/default.nix index c32130986b84a..88d1857324029 100644 --- a/pkgs/applications/editors/spacevim/default.nix +++ b/pkgs/applications/editors/spacevim/default.nix @@ -1,5 +1,5 @@ { ripgrep, git, fzf, makeWrapper, vim_configurable, vimPlugins, fetchFromGitHub -, lib, stdenv, formats, spacevim_config ? import ./init.nix }: +, lib, stdenv, formats, runCommand, spacevim_config ? import ./init.nix }: let format = formats.toml {}; @@ -10,7 +10,10 @@ let # ~/.cache/vimfiles/repos vimrcConfig.packages.myVimPackage = with vimPlugins; { start = [ ]; }; }; - spacevimdir = format.generate "init.toml" spacevim_config; + spacevimdir = runCommand "SpaceVim.d" { } '' + mkdir -p $out + cp ${format.generate "init.toml" spacevim_config} $out/init.toml + ''; in stdenv.mkDerivation rec { pname = "spacevim"; version = "1.5.0"; |