kiwmi debug build
This commit is contained in:
parent
b346323d0b
commit
3628e93d18
@ -1,5 +1,6 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, callPackage
|
, callPackage
|
||||||
|
, debug ? false
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
|
||||||
, fennel
|
, fennel
|
||||||
@ -45,7 +46,7 @@ let
|
|||||||
penlight
|
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";
|
GIO_EXTRA_MODULES = "${glib-networking}/lib/gio/modules";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, debug ? false
|
||||||
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cairo
|
, cairo
|
||||||
, fennel
|
, fennel
|
||||||
@ -53,5 +55,6 @@ stdenv.mkDerivation rec {
|
|||||||
xwayland
|
xwayland
|
||||||
];
|
];
|
||||||
|
|
||||||
# mesonFlags = [ "-Dxwayland=enabled" ];
|
dontStrip = debug;
|
||||||
|
mesonFlags = lib.optionals debug [ "--buildtype=debug" ];
|
||||||
}
|
}
|
||||||
|
9
shell.nix
Normal file
9
shell.nix
Normal 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; }
|
Loading…
Reference in New Issue
Block a user