gtk: disable gtk3 nocsd, it causes lots of crashes due to LD_PRELOAD
This commit is contained in:
		
							parent
							
								
									778794f91b
								
							
						
					
					
						commit
						77cb5087ac
					
				
					 3 changed files with 0 additions and 45 deletions
				
			
		| 
						 | 
					@ -6,5 +6,4 @@
 | 
				
			||||||
  cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
 | 
					  cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
 | 
				
			||||||
  lipsum = pkgs.callPackage ./lipsum.nix { inherit inputs; };
 | 
					  lipsum = pkgs.callPackage ./lipsum.nix { inherit inputs; };
 | 
				
			||||||
  amdgpu-kernel-module = pkgs.callPackage ./amdgpu-kernel-module.nix { };
 | 
					  amdgpu-kernel-module = pkgs.callPackage ./amdgpu-kernel-module.nix { };
 | 
				
			||||||
  gtk3-nocsd = pkgs.callPackage ./gtk3-nocsd.nix { };
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,40 +0,0 @@
 | 
				
			||||||
{ lib
 | 
					 | 
				
			||||||
, stdenv
 | 
					 | 
				
			||||||
, fetchFromGitHub
 | 
					 | 
				
			||||||
, pkgconfig
 | 
					 | 
				
			||||||
, gtk3
 | 
					 | 
				
			||||||
, gobject-introspection
 | 
					 | 
				
			||||||
}:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
stdenv.mkDerivation rec {
 | 
					 | 
				
			||||||
  pname = "gtk3-nocsd";
 | 
					 | 
				
			||||||
  version = "3.0.1";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  src = fetchFromGitHub {
 | 
					 | 
				
			||||||
    owner = "ZaWertun";
 | 
					 | 
				
			||||||
    repo = pname;
 | 
					 | 
				
			||||||
    rev = "v${version}";
 | 
					 | 
				
			||||||
    sha256 = "035rrn9jq9bdfkmmj6xl4q8paqx7xf3hxsw6gslgk86sh7x56lvi";
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  buildInputs = [
 | 
					 | 
				
			||||||
    gtk3
 | 
					 | 
				
			||||||
    gobject-introspection
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  nativeBuildInputs = [
 | 
					 | 
				
			||||||
    pkgconfig
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  makeFlags = [
 | 
					 | 
				
			||||||
    "prefix=${placeholder "out"}"
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  meta = with lib; {
 | 
					 | 
				
			||||||
    description = "A hack to disable gtk+ 3 client side decoration";
 | 
					 | 
				
			||||||
    homepage = https://github.com/PCMan/gtk3-nocsd;
 | 
					 | 
				
			||||||
    license = licenses.lgpl21Plus;
 | 
					 | 
				
			||||||
    # maintainers = with maintainers; [ peanutbutter144 ];
 | 
					 | 
				
			||||||
    platforms = platforms.linux;
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					@ -124,9 +124,5 @@ in
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      mpvpaper
 | 
					      mpvpaper
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
    home.sessionVariables = {
 | 
					 | 
				
			||||||
      LD_PRELOAD = "${pkgs.gtk3-nocsd}/lib/libgtk3-nocsd.so.0";
 | 
					 | 
				
			||||||
      GTK_CSD = "0";
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue