diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-12-31 13:07:17 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-12-31 13:08:32 +0100 |
commit | 72dc6e15cb97e03151b2929858fed3c46edcff5e (patch) | |
tree | 73a5ce2493bf775b76008653622abc8da1d8397b /humblebundle/fez.nix | |
parent | 987d7bcad86901f304ca932e54fe4104ad40dfc6 (diff) |
Move everything into /humblebundle/.
We don't just want HumbleBundle games, so let's try to keep the directory structure that way very early. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'humblebundle/fez.nix')
-rw-r--r-- | humblebundle/fez.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/humblebundle/fez.nix b/humblebundle/fez.nix new file mode 100644 index 00000000..5f23b97c --- /dev/null +++ b/humblebundle/fez.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchHumbleBundle, unzip, mono, openal, SDL2 }: + +let + version = "1.0.2"; + usVersion = stdenv.lib.replaceChars ["."] ["_"] version; +in stdenv.mkDerivation rec { + name = "fez-${version}"; + version = "09152013"; + + src = fetchHumbleBundle { + name = "${name}-bin"; + md5 = "4ac954101835311f3528f5369e1fecb7"; + }; + + unpackPhase = '' + ${unzip}/bin/unzip -qq "$src" 'data/*' || true + sourceRoot=data + ''; + + dontStrip = true; + + buildPhase = '' + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath "${stdenv.lib.makeLibraryPath [ mono openal SDL2 ]}" \ + FEZ.bin.x86_64 + ''; + + installPhase = '' + ensureDir "$out/bin" "$out/libexec/fez/mono/2.0" + install -vD FEZ.bin.x86_64 "$out/libexec/fez/fez" + install -vt "$out/libexec/fez/mono/2.0" *.dll + ln -s "$out/libexec/fez/fez" "$out/bin/fez" + ''; +} |