cfr: 0_101 -> 0_125
This commit is contained in:
parent
538913cb90
commit
afb505fb5a
|
@ -1,28 +1,20 @@
|
||||||
{ stdenv, fetchurl, jre }:
|
{ stdenv, makeWrapper, fetchurl, jre }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "cfr-${version}";
|
name = "cfr-${version}";
|
||||||
version = "0_101";
|
version = "0_125";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
sha256 = "0zwl3whypdm2qrw3hwaqjnifkb4wcdn8fx9scrjkli54bhr6dqch";
|
|
||||||
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
url = "http://www.benf.org/other/cfr/cfr_${version}.jar";
|
||||||
|
sha256 = "1ad9ddg79cybv8j8l3mm67znyw54z5i55x4m9n239fn26p1ndawa";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ jre ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
buildCommand = ''
|
||||||
|
jar=$out/share/java/cfr_${version}.jar
|
||||||
installPhase = ''
|
install -Dm444 $src $jar
|
||||||
jar=$out/share/cfr/cfr_${version}.jar
|
makeWrapper ${jre}/bin/java $out/bin/cfr --add-flags "-jar $jar"
|
||||||
|
|
||||||
install -Dm644 ${src} $jar
|
|
||||||
|
|
||||||
cat << EOF > cfr
|
|
||||||
#!${stdenv.shell}
|
|
||||||
exec ${jre}/bin/java -jar $jar "\''${@}"
|
|
||||||
EOF
|
|
||||||
install -Dm755 cfr $out/bin/cfr
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue