Skip to content

Commit

Permalink
Update site
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbour committed Nov 2, 2024
1 parent 8fcd818 commit 0e2dfb9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Actions inspired from [wasimlorgat blog](https://github.com/seeM/blog).

Other blogs of interest to draw ideas from:
- https://github.com/Bioconductor/biocblog/tree/main
= https://github.com/pjastam/blog-quarto
- https://github.com/pjastam/blog-quarto
- [Quarto
Workshop](https://github.com/jadeynryan/parameterized-quarto-workshop/tree/main)
=> build presentation as part of Quarto

## Tools

Expand Down
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ website:
href: https://twitter.com
format:
html:
toc: true
theme:
dark: darkly
#dark: [cosmo, theme-dark.scss]
Expand Down
2 changes: 1 addition & 1 deletion posts/_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
freeze: true

# Enable banner style title blocks
title-block-banner: "#FFA500"
title-block-banner: true

# Change the color of title-block-banner to "#FFA500".
# Change it again to `banner.jpg`.
18 changes: 12 additions & 6 deletions posts/unreal-engine-nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ requested libraries.
I have tried a few approaches to get it working on Nix or LXD under Nix,
however, in the end I resorted to using their `docker` image.

## Running on Nix
# Running on Nix

Prebuilt binaries expecting to run on Linux normally have hard-coded paths in
the executable, such as `/lib/libstdc++.6.so` or even worse the linker itself
cannot be found.

### FHSUserEnv
## FHSUserEnv
In some cases workaround to build and FHS environment fixes the
issue. In this scenario, the program is really big (larger than 30GB), so
populating a derivation with that amount of extra storage is not acceptable for
Expand Down Expand Up @@ -90,7 +90,7 @@ buildFHSUserEnv {
paths in order to fix the build issue. However, this still seems to error with a binary trying to call an utility from
a hard-coded path.

### `nix-ld`
## `nix-ld`

Also tried to setup an environment using [nix-ld](https://github.com/nix-community/nix-ld) to run with libraries paths being patched automagically.
==IDK how nix-ld actually works as I have checked out their source code==
Expand Down Expand Up @@ -120,7 +120,9 @@ mkShell {
}
```

### LXD
# Running in container

## LXD

Next obvious answer to me was to work in a Distro that UnrealEngine supports by
default. Getting LXD to work in NixOS had it's own complication with forwarding
Expand Down Expand Up @@ -190,7 +192,7 @@ While the github repository compiled, it didn't finish linking due to an error I
couldn't debug.
==I haven't tried the prebuilt binary for this one==

### Docker
## Docker

Luckly it seems that EpicGames provide a docker image for their releases of
Unreal as well.
Expand All @@ -217,7 +219,7 @@ run:
docker run --rm -ti --device nvidia.com/gpu=all -v/tmp/.X11-unix:/tmp/.X11-unix:rw -e DISPLAY --network host ghcr.io/epicgames/unreal-engine:dev-5.4.3 bash
```

#### GPU, Xserver and network to Docker
### GPU, Xserver and network to Docker

There are a few details to iron out in order to make the above command work. For
NixOS the followings:
Expand Down Expand Up @@ -263,6 +265,10 @@ systemd.services.xhost-docker = {
};
```

## More Info

More information about using Unreal in containers can be found at
[UnrealContainers](https://unrealcontainers.com/docs/use-cases/), showcasing how
to setup docker with correct flags to enable different functionalities.


0 comments on commit 0e2dfb9

Please sign in to comment.