From fc7f8cb4632a5aa430d575e31efa9a778be2c1b9 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 14 Feb 2022 21:50:08 -0600 Subject: [PATCH] remove grammars from nix build --- flake.nix | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/flake.nix b/flake.nix index 660207edaf40f..c55d5a465c307 100644 --- a/flake.nix +++ b/flake.nix @@ -24,40 +24,12 @@ # link languages and theme toml files since helix-core/helix-view expects them helix-core = _: { preConfigure = "ln -s ${common.root}/{languages.toml,theme.toml,base16_theme.toml} .."; }; helix-view = _: { preConfigure = "ln -s ${common.root}/{languages.toml,theme.toml,base16_theme.toml} .."; }; - helix-syntax = prev: { - src = - let - pkgs = common.pkgs; - helix = pkgs.fetchgit { - url = "https://github.com/helix-editor/helix.git"; - rev = "a8fd33ac012a79069ef1409503a2edcf3a585153"; - fetchSubmodules = true; - sha256 = "sha256-5AtOC55ttWT+7RYMboaFxpGZML51ix93wAkYJTt+8JI="; - }; - in - pkgs.runCommand prev.src.name { } '' - mkdir -p $out - ln -s ${prev.src}/* $out - ln -sf ${helix}/helix-syntax/languages $out - ''; - preConfigure = "mkdir -p ../runtime/grammars"; - postInstall = "cp -r ../runtime $out/runtime"; - }; helix-term = prev: let inherit (common) pkgs lib; - helixSyntax = lib.buildCrate { - root = self; - memberName = "helix-syntax"; - defaultCrateOverrides = { - helix-syntax = helix-syntax; - }; - release = false; - }; runtimeDir = pkgs.runCommand "helix-runtime" { } '' mkdir -p $out ln -s ${common.root}/runtime/* $out - ln -sf ${helixSyntax}/runtime/grammars $out ''; in {