Skip to content

Commit

Permalink
Update for kakoune plugin PR
Browse files Browse the repository at this point in the history
  • Loading branch information
eraserhd committed Aug 3, 2020
1 parent 19495dd commit a9e8c5d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dogfood/default.nix
Expand Up @@ -29,7 +29,7 @@
};
};

kakoune-unwrapped = super.kakoune-unwrapped.overrideAttrs (oldAttrs: {
kakoune = super.kakoune.overrideAttrs (oldAttrs: {
src = super.pkgs.fetchFromGitHub (import ./kakoune.nix);
enableParallelBuilding = true;
});
Expand Down
7 changes: 4 additions & 3 deletions dogfood/kak-plumb.nix
@@ -1,6 +1,7 @@
{
owner = "eraserhd";
repo = "kak-plumb";
rev = "7123a9c19bd61d9310cefb59c6434786b5f437bb";
sha256 = "115wwlisjl42qmgqksccdw5vlqfmgf9yfhfw5fbgzfs9kc5qabdb";
}
rev = "3a517c9ef23eb774dc9e47cbdc3bd6b7d8fe2153";
sha256 = "1ww11ppd0brpwx7qmpzxl5fp1vj0azqgz44sbxn1310pm062mrh7";
fetchSubmodules = false;
}
22 changes: 10 additions & 12 deletions kakoune/default.nix
Expand Up @@ -10,18 +10,16 @@ in {
{
nixpkgs.overlays = [
(self: super: {
kakoune = super.wrapKakoune self.kakoune-unwrapped {
configure = {
plugins = with self.kakounePlugins; [
#case-kak
kak-ansi
kak-fzf
my-kak-plumb
parinfer-rust
]
# Remove this hack when Graal is on MacOS
++ lib.optional (!pkgs.stdenv.isDarwin) rep;
};
kakoune-with-plugins = super.kakoune-with-plugins.override {
plugins = with pkgs.kakounePlugins; [
#case-kak
kak-ansi
kak-fzf
my-kak-plumb
parinfer-rust
]
# Remove this hack when Graal is on MacOS
++ lib.optional (!pkgs.stdenv.isDarwin) rep;
};
kakouneWrapper = super.callPackage ./wrapper {};
})
Expand Down
6 changes: 3 additions & 3 deletions kakoune/wrapper/default.nix
@@ -1,8 +1,8 @@
{ bash, kakoune, stdenv }:
{ bash, kakoune-with-plugins, stdenv }:

stdenv.mkDerivation {
name = "kakouneWrapper";
buildInputs = [ bash kakoune ];
buildInputs = [ bash kakoune-with-plugins ];
src = ./wrapper.sh;

phases = [ "installPhase" "fixupPhase" ];
Expand All @@ -12,6 +12,6 @@ stdenv.mkDerivation {
cp $src $out/bin/kak
substituteInPlace $out/bin/kak \
--subst-var-by bash "${bash}" \
--subst-var-by kakoune "${kakoune}"
--subst-var-by kakoune-with-plugins "${kakoune-with-plugins}"
'';
}
2 changes: 1 addition & 1 deletion kakoune/wrapper/wrapper.sh
Expand Up @@ -4,7 +4,7 @@
# for the current tmux window.
#

kak="@kakoune@/bin/kak"
kak="@kakoune-with-plugins@/bin/kak"
declare -a extraArgs=()

canSpecifySession() {
Expand Down
2 changes: 1 addition & 1 deletion nixpkgs

0 comments on commit a9e8c5d

Please sign in to comment.