anchor.diff:    NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-I${musl-fts}/include";
     NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-lfts";
   
  -  makeFlags = [ "PREFIX=${placeholder "out"}" ]
  +  makeFlags = [ "PREFIX=$(out)" ]
       ++ lib.optionals withIcons [ "O_ICONS=1" ]
       ++ lib.optionals withNerdIcons [ "O_NERD=1" ];
   
  
positive.code:     platforms = platforms.all;
      maintainers = with maintainers; [ jfrankenau Br1ght0ne ];
    };
  }
  
negative.code: assert withIcons -> withNerdIcons == false;
  assert withNerdIcons -> withIcons == false;
  
  stdenv.mkDerivation (finalAttrs: {
    pname = "nnn";
    version = "4.7";
  
    src = fetchFromGitHub {
      owner = "jarun";
      repo = "nnn";
      rev = "v${finalAttrs.version}";
      hash = "sha256-ttG0aEqMlNyJaMhcVfrxbxlrhr1GSydrV58CYSq4CTM=";
    };
  
    configFile = lib.optionalString (conf != null) (builtins.toFile "nnn.h" conf);
    preBuild = lib.optionalString (conf != null) "cp ${finalAttrs.configFile} src/nnn.h";
  
    nativeBuildInputs = [ installShellFiles makeWrapper pkg-config ];
    buildInputs = [ readline ncurses ] ++ lib.optional stdenv.hostPlatform.isMusl musl-fts;
  