Created
September 4, 2016 23:32
-
-
Save mausch/523319c357c5908780be4fa1772efe49 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
with import <nixpkgs> {}; { | |
pycharm = stdenv.mkDerivation rec { | |
name = "pycharm-community-mau"; | |
version = "2016.2.2"; | |
src = fetchurl { | |
url = https://download.jetbrains.com/python/pycharm-community-2016.2.2.tar.gz; | |
sha256 = "6bf50910355f680983246ab51f7a082ae6f34f799db222986c1c59003bf1dbec"; | |
}; | |
buildInputs = [ jdk makeWrapper ]; | |
installPhase = '' | |
echo $out | |
mkdir -p $out | |
cp -R . $out | |
jdk=${jdk.home} | |
makeWrapper "$out/$name/bin/pycharm.sh" "$out/bin/pycharm" \ | |
--prefix PATH : "$out/libexec/${name}:${stdenv.lib.makeBinPath [ jdk ]}" \ | |
--set JDK_HOME "$jdk" \ | |
--set ANDROID_JAVA_HOME "$jdk" \ | |
--set JAVA_HOME "$jdk" | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/garbas/1938b65c72e5af56ea9045ae14877d73