mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
emem: 0.2.12 -> 0.2.13
This commit is contained in:
parent
c7e448818f
commit
59e03ae85e
@ -2,14 +2,14 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "emem";
|
||||
version = "0.2.12";
|
||||
version = "0.2.13";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
inherit jdk;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar";
|
||||
sha256 = "1ynn72n9pw9zk29c9q2zybxjg8dniilp05vghrc9vnslyi8ml90d";
|
||||
sha256 = "0c5c488jsh15ysdmqkq0qmdvz41y12phlgjpj8jf0dzh8jc35p80";
|
||||
};
|
||||
|
||||
buildInputs = [ ];
|
||||
@ -22,14 +22,14 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp $src $out/share/java
|
||||
cp $src $out/share/java/${pname}.jar
|
||||
|
||||
cat > $out/bin/emem <<EOF
|
||||
cat > $out/bin/${pname} <<EOF
|
||||
#! $SHELL
|
||||
$jdk/bin/java -jar $out/share/java/$(basename $src) "\$@"
|
||||
$jdk/bin/java -jar $out/share/java/${pname}.jar "\$@"
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/emem
|
||||
chmod +x $out/bin/${pname}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user