Merge pull request #35542 from volth/patch-108

cfr: 0_101 -> 0_125
This commit is contained in:
Gabriel Ebner 2018-03-18 15:43:21 +01:00 committed by GitHub
commit 8ba914a224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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