Skip to content

Commit fb322ee

Browse files
committed
remove redundant stuff from vi
1 parent 1c47a9d commit fb322ee

File tree

2 files changed

+22
-34
lines changed

2 files changed

+22
-34
lines changed

pub/vi/nix/default.nix

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ let
88
in
99
{
1010
ai ? false,
11-
mini ? true,
1211
formatter ? "ormolu",
1312
vimBackground ? "light",
1413
vimColorScheme ? "PaperColor", # "edge",
@@ -57,6 +56,7 @@ in
5756
''
5857
set runtimepath+=${vi-src}
5958
let $PATH.=':${silver-searcher}/bin:${nodejs}/bin:${less}/bin:${lesspipeWrapper}/bin:${python311Packages.grip}/bin:${xdg-utils}/bin:${git}/bin:${jre8}/bin:${stylua}/bin'
59+
let $SHELL='/run/current-system/sw/bin/bash'
6060
let g:vimBackground = '${vimBackground}'
6161
let g:vimColorScheme = '${vimColorScheme}'
6262
let g:languagetool_jar='${olds.languagetool}/share/languagetool-commandline.jar'
@@ -120,33 +120,24 @@ in
120120
};
121121
};
122122
in
123-
if mini
124-
then vi
125-
else {
126-
#
127-
# Vi
128-
#
129-
inherit vi;
130-
#
131-
# Haskell
132-
#
133-
ghc = haskell.compiler.ghc902;
134-
stack = haskellPackages.stack;
135-
cabal = cabal-install;
136-
hlint = haskellPackages.hlint;
137-
hoogle = haskellPackages.hoogle;
138-
apply-refact = haskellPackages.apply-refact;
139-
hspec-discover = haskellPackages.hspec-discover;
140-
implicit-hie = haskellPackages.implicit-hie;
141-
ormolu = haskellPackages.ormolu;
142-
brittany = haskellPackages.brittany;
143-
inherit zlib haskell-language-server cabal2nix ghcid;
144-
#
145-
# Dhall
146-
#
147-
inherit dhall dhall-json;
148-
#
149-
# Misc
150-
#
151-
inherit nix niv git curl;
152-
}
123+
vi.overrideAttrs (next: prev: {
124+
nativeBuildInputs =
125+
(
126+
if builtins.hasAttr "nativeBuildInputs" prev
127+
then prev.nativeBuildInputs
128+
else []
129+
)
130+
++ [
131+
pkgs.makeShellWrapper
132+
];
133+
postInstall =
134+
(
135+
if builtins.hasAttr "postInstall" prev
136+
then prev.postInstall
137+
else ""
138+
)
139+
+ ''
140+
wrapProgram $out/bin/vi \
141+
--set SHELL /run/current-system/sw/bin/bash
142+
'';
143+
})

rust/flake.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
rustfmt
6464
wasmtime
6565
];
66-
shellHook = ''
67-
SHELL=/run/current-system/sw/bin/bash
68-
'';
6966
};
7067
packages = {
7168
rustell = mkRustPkg "rustell";

0 commit comments

Comments
 (0)