From c5039a403ee1f20798b72b36e7f93a34d5779fb9 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Tue, 31 Aug 2021 06:27:37 -0500 Subject: [PATCH] remove home-cooked kakoune lib --- backup/lib/kakoune.nix | 67 ------------------------------------- backup/lib/kakoune/.gitkeep | 0 2 files changed, 67 deletions(-) delete mode 100644 backup/lib/kakoune.nix delete mode 100644 backup/lib/kakoune/.gitkeep diff --git a/backup/lib/kakoune.nix b/backup/lib/kakoune.nix deleted file mode 100644 index d7a41d1..0000000 --- a/backup/lib/kakoune.nix +++ /dev/null @@ -1,67 +0,0 @@ -{ pkgs, lib, ... }: -with lib; { - mkPlugin = attrs: - pkgs.stdenv.mkDerivation { - name = attrs.name; - src = attrs.src; - installPhase = '' - mkdir -p $out/share/kak/autoload - cp -R . $out/share/kak/autoload/${attrs.name} - ''; - }; - - mkPlugins = plugins: - pkgs.stdenv.mkDerivation { - name = "kakoune-plugins"; - srcs = ./kakoune; - buildInputs = plugins; - buildPhase = '' - mkdir autoload - - for derivation in ${concatStrings (intersperse " " plugins)}; do - for plugin in $(find $derivation/share/kak/autoload -mindepth 1 -maxdepth 1); do - ln -s $plugin autoload/$(basename $plugin) - done - done - - # if this directory is linked in `/share/autoload`, Kakoune - # will ignore the built-in autoloads. We can get around this by - # linking those autoloads into our output. - ln -s ${pkgs.kakoune-unwrapped}/share/kak/autoload autoload/builtin - ''; - installPhase = '' - mkdir -p $out/share/kak - mv autoload $out/share/kak/autoload - ''; - }; - - mkColorPlugin = attrs: - pkgs.stdenv.mkDerivation { - name = attrs.name; - src = attrs.src; - installPhase = '' - mkdir -p $out/share/kak/colors - cp -R . $out/share/kak/colors/${attrs.name} - ''; - }; - - mkColors = plugins: - pkgs.stdenv.mkDerivation { - name = "kakoune-plugins"; - srcs = ./kakoune; - buildInputs = plugins; - buildPhase = '' - mkdir colors - - for derivation in ${concatStrings (intersperse " " plugins)}; do - for plugin in $(find $derivation/share/kak/colors -mindepth 1 -maxdepth 1); do - ln -s $plugin colors/$(basename $plugin) - done - done - ''; - installPhase = '' - mkdir -p $out/share/kak - mv colors $out/share/kak/colors - ''; - }; -} diff --git a/backup/lib/kakoune/.gitkeep b/backup/lib/kakoune/.gitkeep deleted file mode 100644 index e69de29..0000000