-
-
Save cleverca22/bf846a19afd4c797de99d339c6087810 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ stdenv, fetchurl, unzip, interface, writeText, jre }: | |
let allSight = writeText "Allsight.svg" (builtins.readFile ./Allsight.svg); | |
swoosh = writeText "swoosh.svg" (builtins.readFile ./swoosh.svg); | |
in stdenv.mkDerivation { | |
name = "static-assets"; | |
phases = [ "unpackPhase" "installPhase" ]; | |
buildInputs = [ jre unzip ]; | |
installPhase = '' | |
mkdir -p $out | |
cp ${allSight} $out/Allsight.svg | |
cp ${swoosh} $out/swoosh.svg | |
cp dist/semantic.min.css $out | |
cp -r dist/themes $out | |
cp ${interface}/bin/interface.jsexe/* $out | |
export JAVA_HOME=${jre} | |
cp ${./closure-compiler/closure-compiler.jar} $out/share/closure-compiler.jar | |
exec ${jre}/bin/java -jar $out/share/closure-compiler.jar ${interface}/*.js --compilation_level=ADVANCED_OPTIMIZATIONS > all.min.js | |
zopfli all.min.js | |
''; | |
src = fetchurl { | |
url = "https://github.com/Semantic-Org/Semantic-UI/archive/2.2.10.zip"; | |
sha256 = "1qysd8yqwqnlxnil1xygjq2mjj7r1jyrq28nqh1mlc4x0cgnhcil"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment