aboutsummaryrefslogtreecommitdiff
path: root/contrib/flake.nix
diff options
context:
space:
mode:
authorMatthieu Coudron <teto@users.noreply.github.com>2021-08-30 11:55:02 +0200
committerGitHub <noreply@github.com>2021-08-30 11:55:02 +0200
commit3ab73ff81f4a487e97a057c06bd6c07df9cef9e3 (patch)
tree4509348203431ffb2c5aad14f6443282f478a6f5 /contrib/flake.nix
parent215c9b579282b6df3399faee6990666f9aa7559b (diff)
downloadrneovim-3ab73ff81f4a487e97a057c06bd6c07df9cef9e3.tar.gz
rneovim-3ab73ff81f4a487e97a057c06bd6c07df9cef9e3.tar.bz2
rneovim-3ab73ff81f4a487e97a057c06bd6c07df9cef9e3.zip
chore(flake): fix for recent nixpkgs (#15520)
https://github.com/NixOS/nixpkgs/pull/134463 made keepDebugInfo obsolete for generic packages. This copies what keepDebugInfo used to do.
Diffstat (limited to 'contrib/flake.nix')
-rw-r--r--contrib/flake.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/flake.nix b/contrib/flake.nix
index d07067a7a1..848c52d208 100644
--- a/contrib/flake.nix
+++ b/contrib/flake.nix
@@ -20,12 +20,16 @@
# a development binary to help debug issues
neovim-debug = let
- stdenv = pkgs.stdenvAdapters.keepDebugInfo (if pkgs.stdenv.isLinux then pkgs.llvmPackages_latest.stdenv else pkgs.stdenv);
+ stdenv = if pkgs.stdenv.isLinux then pkgs.llvmPackages_latest.stdenv else pkgs.stdenv;
in
- pkgs.enableDebugging ((neovim.override {
- lua = pkgs.enableDebugging pkgs.luajit;
+ ((neovim.override {
+ lua = pkgs.luajit;
inherit stdenv;
}).overrideAttrs (oa: {
+
+ dontStrip = true;
+ NIX_CFLAGS_COMPILE = " -ggdb -Og";
+
cmakeBuildType = "Debug";
cmakeFlags = oa.cmakeFlags ++ [
"-DMIN_LOG_LEVEL=0"