diff options
author | Cody Hiar <cody@hiar.ca> | 2022-06-05 14:09:57 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2022-06-05 14:09:57 -0600 |
commit | bcb4bcde2c81401ef795d568ff00dd57c09e17e7 (patch) | |
tree | 7b9002d3fef877e59dee6db2d8ad170c86d1d4f1 | |
parent | e617bc9fbce26fdb7c1adaddcbcdff4e8d538aa3 (diff) |
Testing nix < 2.7 syntax
-rw-r--r-- | flake.nix | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 ]; |