emem: 0.2.12 -> 0.2.13

This commit is contained in:
Rommel M. Martinez 2016-03-16 08:14:28 +08:00
parent c7e448818f
commit 59e03ae85e

View File

@ -2,14 +2,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "emem"; pname = "emem";
version = "0.2.12"; version = "0.2.13";
name = "${pname}-${version}"; name = "${pname}-${version}";
inherit jdk; inherit jdk;
src = fetchurl { src = fetchurl {
url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar"; url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar";
sha256 = "1ynn72n9pw9zk29c9q2zybxjg8dniilp05vghrc9vnslyi8ml90d"; sha256 = "0c5c488jsh15ysdmqkq0qmdvz41y12phlgjpj8jf0dzh8jc35p80";
}; };
buildInputs = [ ]; buildInputs = [ ];
@ -22,14 +22,14 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
cp $src $out/share/java cp $src $out/share/java/${pname}.jar
cat > $out/bin/emem <<EOF cat > $out/bin/${pname} <<EOF
#! $SHELL #! $SHELL
$jdk/bin/java -jar $out/share/java/$(basename $src) "\$@" $jdk/bin/java -jar $out/share/java/${pname}.jar "\$@"
EOF EOF
chmod +x $out/bin/emem chmod +x $out/bin/${pname}
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {