Skip to content

Instantly share code, notes, and snippets.

@markus1189
Created March 27, 2021 14:20
Show Gist options
  • Save markus1189/5cd5fef6559492291bed077318606b55 to your computer and use it in GitHub Desktop.
Save markus1189/5cd5fef6559492291bed077318606b55 to your computer and use it in GitHub Desktop.
Nix buildFHSEnv for DungeonDraft
{ pkgs ? import <nixpkgs> { } }:
(pkgs.buildFHSUserEnv {
name = "DungeonDraftFhs";
targetPkgs = pkgs:
with pkgs; [
alsaLib
libglvnd
pulseaudioLight
] ++ (with xlibs; [
libX11
libXcursor
libXi
libXinerama
libXrandr
libXrender
]);
runScript = "./Dungeondraft.x86_64";
}).env
@Mjb141
Copy link

Mjb141 commented Jul 3, 2024

@markus1189 Hey, trying this now with a few updates (pulseaudioLight removed, xlibs -> xorg, xorg.libXext added) and getting a range of errors relating to a missing .so that Dungeondraft packages:

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'Exporter' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Global' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /home/m/Dungeondraft/data_Dungeondraft/Mono/lib/../lib/libmono-native.so assembly:<unknown assembly> type:<unknown type> member:(null)

That libmono-native.so is provided by Dungeondraft:

~/Dungeondraft/data_Dungeondraft/Mono/lib

total 2.7M
drwxr-xr-x 2 m users 4.0K Feb 19 16:23 .
drwxr-xr-x 4 m users 4.0K Feb 19 16:23 ..
-rw-r--r-- 1 m users 1.5M Mar 11  2022 libmono-btls-shared.so
-rw-r--r-- 1 m users 775K Mar 11  2022 libmono-native.so
-rw-r--r-- 1 m users 286K Mar 11  2022 libMonoPosixHelper.so
-rw-r--r-- 1 m users 146K Mar 11  2022 libMonoSupportW.so

Know what's up with that? Also got the same errors with nix-ld if that's any indication...

@markus1189
Copy link
Author

Sorry, I am not actively using dungeondraft anymore, so I am not much of a help here.

Maybe a search on github can help? https://sourcegraph.com/search?q=context:global+dungeondraft+file:.*%5C.nix&patternType=keyword&sm=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment