From bcb4bcde2c81401ef795d568ff00dd57c09e17e7 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sun, 5 Jun 2022 14:09:57 -0600 Subject: Testing nix < 2.7 syntax --- flake.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index 032a44e..3931d4d 100644 --- a/flake.nix +++ b/flake.nix @@ -19,16 +19,12 @@ ]; }; in rec { - apps.${system} = rec { - nvim = { - type = "app"; - program = "${packages.${system}.default}/bin/nvim"; - }; - default = nvim; + # From nix >= 2.7 the default app syntax changes + defaultApp.${system} = { + type = "app"; + program = "${packages.${system}.neovimCH}/bin/nvim"; }; - packages.${system} = rec { - default = neovimCH; - neovimCH = with pkgs; symlinkJoin { + packages.${system}.neovimCH = with pkgs; symlinkJoin { name = "neovim"; paths = [ pkgs.neovim ]; buildInputs = [ pkgs.makeWrapper ]; -- cgit v1.2.3