diff options
author | Brian McKenna <bmckenna@atlassian.com> | 2016-02-18 13:50:26 +1100 |
---|---|---|
committer | Brian McKenna <bmckenna@atlassian.com> | 2016-02-19 14:41:51 +1100 |
commit | 392699a82d2c98fe4fa451364ec3b50d22ed5732 (patch) | |
tree | e76848cce145c7fa69d2a1a22caa9045c44db114 /pkgs/games/ue4/generate-expr-from-cdn.sh | |
parent | 412dd80149e837ef89171f1fe0f0423e3b72aa21 (diff) | |
download | nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.tar nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.tar.gz nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.tar.bz2 nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.tar.lz nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.tar.xz nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.tar.zst nixlib-392699a82d2c98fe4fa451364ec3b50d22ed5732.zip |
ue4: init at 4.10.2
This builds Unreal Engine 4 and has a wrapper to start the editor. Sadly the application requires write access to a lot of paths. I have a hack to do a symlink tree under $HOME and it works well, the UE4Editor binary just needs to be not a symlink.
Diffstat (limited to 'pkgs/games/ue4/generate-expr-from-cdn.sh')
-rw-r--r-- | pkgs/games/ue4/generate-expr-from-cdn.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/games/ue4/generate-expr-from-cdn.sh b/pkgs/games/ue4/generate-expr-from-cdn.sh new file mode 100644 index 000000000000..91cab1ca32f5 --- /dev/null +++ b/pkgs/games/ue4/generate-expr-from-cdn.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +go() { + file="$1" + + IFS=$'\n' + for pack in $(perl -n -e '/(<Pack .*\/>)/ && print "$1\n"' $file); do + remotepath=$(echo "$pack" | perl -n -e '/RemotePath="([^"]*)"/ && print $1') + hash=$(echo "$pack" | perl -n -e '/Hash="([^"]*)"/ && print $1') + url="http://cdn.unrealengine.com/dependencies/$remotepath/$hash" + + until sha256=$(nix-prefetch-url $url --type sha256); do + true + done + + cat <<EOF + "$hash" = fetchurl { + url = $url; + sha256 = "$sha256"; + }; +EOF + done +} + + +cat <<EOF +{ fetchurl }: + +{ +EOF + +go Engine/Build/Commit.gitdeps.xml +go Engine/Build/Promoted.gitdeps.xml + +cat <<EOF +} +EOF |