|
|
@ -74,6 +74,25 @@
|
|
|
|
# filter out unnecessary paths
|
|
|
|
# filter out unnecessary paths
|
|
|
|
filter = ignorePaths;
|
|
|
|
filter = ignorePaths;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
helix-cogs = craneLibStable.buildPackage (commonArgs // {
|
|
|
|
|
|
|
|
pname = "helix-cogs";
|
|
|
|
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
cargoArtifacts = craneLibStable.buildDepsOnly commonArgs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
|
|
|
|
export HOME=$PWD/build_home # code-gen will write files relative to $HOME
|
|
|
|
|
|
|
|
cargoBuildLog=$(mktemp cargoBuildLogXXXX.json)
|
|
|
|
|
|
|
|
cargo run --package xtask -- code-gen --message-format json-render-diagnostics >"$cargoBuildLog"
|
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
|
|
|
|
mkdir -p $out/cogs
|
|
|
|
|
|
|
|
cp -r build_home/.config/helix/* "$out/cogs"
|
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
makeOverridableHelix = old: config: let
|
|
|
|
makeOverridableHelix = old: config: let
|
|
|
|
grammars = pkgs.callPackage ./grammars.nix config;
|
|
|
|
grammars = pkgs.callPackage ./grammars.nix config;
|
|
|
|
runtimeDir = pkgs.runCommand "helix-runtime" {} ''
|
|
|
|
runtimeDir = pkgs.runCommand "helix-runtime" {} ''
|
|
|
@ -146,6 +165,7 @@
|
|
|
|
'';
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
|
|
|
|
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
|
|
|
|
|
|
|
|
helix-cogs = helix-cogs;
|
|
|
|
default = self.packages.${system}.helix;
|
|
|
|
default = self.packages.${system}.helix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|