kiwmi debug build

phoen
Daniel Barlow 2022-05-18 10:33:37 +01:00
parent b346323d0b
commit 3628e93d18
3 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{ stdenv
, callPackage
, debug ? false
, fetchFromGitHub
, fennel
@ -45,7 +46,7 @@ let
penlight
]);
kiwmi = callPackage ./kiwmi.nix { lua = lua5_3; };
kiwmi = callPackage ./kiwmi.nix { lua = lua5_3; inherit debug; };
GIO_EXTRA_MODULES = "${glib-networking}/lib/gio/modules";
in
stdenv.mkDerivation {

View File

@ -1,5 +1,7 @@
{ lib
, stdenv
, debug ? false
, fetchFromGitHub
, cairo
, fennel
@ -53,5 +55,6 @@ stdenv.mkDerivation rec {
xwayland
];
# mesonFlags = [ "-Dxwayland=enabled" ];
dontStrip = debug;
mesonFlags = lib.optionals debug [ "--buildtype=debug" ];
}

9
shell.nix Normal file
View File

@ -0,0 +1,9 @@
with import <nixpkgs> {} ;
let p = callPackage ./. {};
in (p.overrideAttrs (o:{
nativeBuildInputs = [pkgs.gdb];
shellHook = ''
export LUA_PATH=`lua -e 'print(package.path)'`
export LUA_CPATH=`lua -e 'print(package.cpath)'`
'';
})).override { debug = true; }