Created
May 20, 2019 14:05
-
-
Save Jomik/5030528be891d4290df6093f089be7a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ buildFHSUserEnv, stdenv, fetchurl, writeScriptBin, callPackage }: | |
let | |
nixGL = callPackage (fetchTarball { | |
url = "https://github.com/guibou/nixGL/archive/04a6b0833fbb46a0f7e83ab477599c5f3eb60564.tar.gz"; | |
sha256 = "0z1zafkb02sxng91nsx0gclc7n7sv3d5f23gp80s3mc07p22m1k5"; | |
}) {}; | |
firestorm = stdenv.mkDerivation rec { | |
pname = "firestorm"; | |
version = "6.0.2.56680"; | |
src = fetchurl { | |
sha256 = "1n9psqaxx1w3fskryqcl313fhqx13wb72z5xricxqkx1q2xl8xv6"; | |
url = "https://downloads.firestormviewer.org/linux/Phoenix_FirestormOS-Releasex64_x86_64_${version}.tar.xz"; | |
}; | |
installPhase = '' | |
mkdir -p $out/opt | |
cp -r . $out/opt | |
ls -lah $out/opt | |
''; | |
dontStrip = true; | |
}; | |
firestorm-launcher = writeScriptBin "firestorm" '' | |
cd "${firestorm}/opt" | |
./firestorm $* | |
exit $? | |
''; | |
in buildFHSUserEnv { | |
name = "fhs-firestorm"; | |
targetPkgs = pkgs: (with pkgs; [ | |
alsaLib | |
SDL apr aprutil atk cairo curl db dbus_glib freealut freetype | |
gtk2 hunspell jsoncpp libGL libjpeg libogg libpng libvorbis nghttp2 openal | |
opencollada openjpeg pangox_compat pcre uriparser zlib | |
glib.out libGLU xorg.libX11 fontconfig xorg.libXrandr | |
]); | |
runScript = "${nixGL.nixGLIntel}/bin/nixGLIntel ${firestorm-launcher}/bin/firestorm"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment