This repository has been archived on 2024-11-22. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-old/modules/desktop/apps/godot.nix

28 lines
797 B
Nix
Raw Normal View History

/* -------------------------------------------------------------------------- */
/* App config: Godot Engine */
/* -------------------------------------------------------------------------- */
{ lib, config, options, pkgs ? import <nixpkgs>, ... }:
with lib;
let cfg = config.modules.desktop.apps.godot;
in {
options.modules.desktop.apps.godot = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
libgcc
];
environment.systemPackages = with pkgs.unstable; [
godot_4
godot_4-export-templates
gcc-unwrapped
];
environment.sessionVariables = { LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; };
};
}