shell.nix 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. { pkgs ? (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
  2. in import (builtins.fetchTarball {
  3. url =
  4. "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
  5. sha256 = lock.nodes.nixpkgs.locked.narHash;
  6. }) { }) }:
  7. let
  8. dependencies = with pkgs; [
  9. dotnetCorePackages.sdk_9_0
  10. icu
  11. glfw
  12. SDL2
  13. libGL
  14. openal
  15. freetype
  16. fluidsynth
  17. soundfont-fluid
  18. gtk3
  19. pango
  20. cairo
  21. atk
  22. zlib
  23. glib
  24. gdk-pixbuf
  25. nss
  26. nspr
  27. at-spi2-atk
  28. libdrm
  29. expat
  30. libxkbcommon
  31. xorg.libxcb
  32. xorg.libX11
  33. xorg.libXcomposite
  34. xorg.libXdamage
  35. xorg.libXext
  36. xorg.libXfixes
  37. xorg.libXrandr
  38. xorg.libxshmfence
  39. mesa
  40. alsa-lib
  41. dbus
  42. at-spi2-core
  43. cups
  44. python3
  45. ];
  46. in pkgs.mkShell {
  47. name = "space-station-14-devshell";
  48. buildInputs = [ pkgs.gtk3 ];
  49. packages = dependencies;
  50. shellHook = ''
  51. export GLIBC_TUNABLES=glibc.rtld.dynamic_sort=1
  52. export ROBUST_SOUNDFONT_OVERRIDE=${pkgs.soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2
  53. export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH
  54. export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath dependencies}
  55. '';
  56. }