diff --git a/flake.lock b/flake.lock index 03d8611..3de7356 100644 --- a/flake.lock +++ b/flake.lock @@ -1,21 +1,5 @@ { "nodes": { - "direnv/direnv.vim": { - "flake": false, - "locked": { - "lastModified": 1701514458, - "narHash": "sha256-Lwwm95UEkS8Q0Qsoh10o3sFn48wf7v7eCX/FJJV1HMI=", - "owner": "direnv", - "repo": "direnv.vim", - "rev": "ab2a7e08dd630060cd81d7946739ac7442a4f269", - "type": "github" - }, - "original": { - "owner": "direnv", - "repo": "direnv.vim", - "type": "github" - } - }, "nixpkgs": { "locked": { "lastModified": 1728888510, @@ -34,7 +18,6 @@ }, "root": { "inputs": { - "direnv/direnv.vim": "direnv/direnv.vim", "nixpkgs": "nixpkgs" } } diff --git a/nix/package.nix b/nix/package.nix index ce78047..e2b9138 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -38,8 +38,20 @@ let wl-clipboard ]; in -pkgs.writeShellScriptBin "nvim" '' - export PATH=${lib.makeBinPath deps}:$PATH - export LUA_PATH=${../.}/lua/?.lua - ${pkgs.neovim}/bin/nvim -u ${../.}/init.lua $@ -'' +pkgs.writeTextFile { + name = "nvim"; + executable = true; + destination = "/bin/nvim"; + text = '' + #!${pkgs.bash} + export PATH=${lib.makeBinPath deps}:$PATH + export LUA_PATH=${../.}/lua/?.lua + ${pkgs.neovim}/bin/nvim -u ${../.}/init.lua $@ + ''; + checkPhase = '' + ${pkgs.stdenv.shellDryRun} "$target" + ''; + meta = pkgs.neovim.meta // { + mainProgram = "nvim"; + }; +}