From e617bc9fbce26fdb7c1adaddcbcdff4e8d538aa3 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sun, 5 Jun 2022 14:04:33 -0600 Subject: Try adding a default app to run flake remotely --- flake.nix | 51 +++++++++++++++++++++++++++++---------------------- result | 1 + 2 files changed, 30 insertions(+), 22 deletions(-) create mode 120000 result diff --git a/flake.nix b/flake.nix index 5c9454c..032a44e 100644 --- a/flake.nix +++ b/flake.nix @@ -18,28 +18,35 @@ }) ]; }; - in { - packages.${system} = rec { - default = neovimCH; - neovimCH = with pkgs; symlinkJoin { - name = "neovim"; - paths = [ pkgs.neovim ]; - buildInputs = [ pkgs.makeWrapper ]; - postBuild = with pkgs; '' - rm $out/bin/nvim - BINPATH=${lib.makeBinPath [ - nodejs - mypython - pyright - vale - tree-sitter - nodePackages.bash-language-server - shellcheck - hadolint - ]} - makeWrapper ${neovim}/bin/nvim $out/bin/nvim --prefix PATH : $BINPATH - ''; + in rec { + apps.${system} = rec { + nvim = { + type = "app"; + program = "${packages.${system}.default}/bin/nvim"; + }; + default = nvim; + }; + packages.${system} = rec { + default = neovimCH; + neovimCH = with pkgs; symlinkJoin { + name = "neovim"; + paths = [ pkgs.neovim ]; + buildInputs = [ pkgs.makeWrapper ]; + postBuild = with pkgs; '' + rm $out/bin/nvim + BINPATH=${lib.makeBinPath [ + nodejs + mypython + pyright + vale + tree-sitter + nodePackages.bash-language-server + shellcheck + hadolint + ]} + makeWrapper ${neovim}/bin/nvim $out/bin/nvim --prefix PATH : $BINPATH + ''; + }; }; - }; }; } diff --git a/result b/result new file mode 120000 index 0000000..9b196b3 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/iddkkvlpvi7wqa4ly8xk3nsd9vd7rjwq-neovim \ No newline at end of file -- cgit v1.2.3