-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdefault.nix
33 lines (26 loc) · 984 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, lib, theme ? "onedark", style ? "", transparent ? false, syncBuild ? false }:
let
boolToString = bool: if bool then "true" else "false";
in
stdenv.mkDerivation {
name = "neocode";
src = ./.;
installPhase = ''
mkdir -p $out;
cp -rf * $out;
sed -i 's/name = "\w*",/name = "${theme}",/' $out/lua/settings.lua
sed -i 's/style = "\w*",/style = "${style}",/' $out/lua/settings.lua
sed -i 's/transparent = \w*,/transparent = ${boolToString transparent},/' $out/lua/settings.lua
sed -i 's/sync_install = \w*/sync_install = ${boolToString syncBuild}/' $out/lua/plugins/language.lua
'';
meta = with lib; {
description = "Configuration for neovim";
longDescription = ''
Configuration for neovim, which aims to enable an equal workflow for vscode and neovim.
'';
homepage = "https://github.com/aserowy/neocode";
license = licenses.mit;
maintainers = [ maintainers.aserowy ];
platforms = platforms.all;
};
}