commit
8ba914a224
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user