summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authortilpner <till@hoeppner.ws>2018-05-01 10:36:38 +0200
committertilpner <till@hoeppner.ws>2018-05-01 10:36:38 +0200
commit16e46207ec55a9610f5f08bb7f07966b13742ff7 (patch)
tree882b0142449bc0bd1300b78508cf82bd73f6b83f /pkgs/applications/graphics
parent2001b57a25e6ae3d6cb1594b31aeb819439380ac (diff)
downloadnixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.tar
nixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.tar.gz
nixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.tar.bz2
nixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.tar.lz
nixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.tar.xz
nixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.tar.zst
nixpkgs-16e46207ec55a9610f5f08bb7f07966b13742ff7.zip
goxel: don't save imgui.ini to working directory
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/goxel/default.nix2
-rw-r--r--pkgs/applications/graphics/goxel/disable-imgui_ini.patch13
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/goxel/default.nix b/pkgs/applications/graphics/goxel/default.nix
index 03f7b515747..3d49452cbe6 100644
--- a/pkgs/applications/graphics/goxel/default.nix
+++ b/pkgs/applications/graphics/goxel/default.nix
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
     sha256 = "01022c43pmwiqb18rx9fz08xr99h6p03gw6bp0lay5z61g3xkz17";
   };
 
+  patches = [ ./disable-imgui_ini.patch ];
+
   nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
   buildInputs = [ glfw3 gtk3 libpng12 ];
 
diff --git a/pkgs/applications/graphics/goxel/disable-imgui_ini.patch b/pkgs/applications/graphics/goxel/disable-imgui_ini.patch
new file mode 100644
index 00000000000..9427d45487d
--- /dev/null
+++ b/pkgs/applications/graphics/goxel/disable-imgui_ini.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gui.cpp b/src/gui.cpp
+index 9b7236c..a8a11b2 100644
+--- a/src/gui.cpp
++++ b/src/gui.cpp
+@@ -314,6 +314,8 @@ static void init_ImGui(const inputs_t *inputs)
+     ImGuiIO& io = ImGui::GetIO();
+     io.DeltaTime = 1.0f/60.0f;
+
++    io.IniFilename = NULL;
++
+     io.KeyMap[ImGuiKey_Tab]         = KEY_TAB;
+     io.KeyMap[ImGuiKey_LeftArrow]   = KEY_LEFT;
+     io.KeyMap[ImGuiKey_RightArrow]  = KEY_RIGHT;