mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
jedit: Fix build
This commit is contained in:
parent
ec685e30de
commit
d150d49128
1 changed files with 12 additions and 14 deletions
|
@ -1,20 +1,20 @@
|
|||
{ stdenv, fetchurl, ant, jre }:
|
||||
{ stdenv, fetchurl, ant, jdk }:
|
||||
|
||||
let version = "4.4.2"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "jedit-4.4.2";
|
||||
name = "jedit-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/jedit/jedit4.4.2source.tar.bz2;
|
||||
url = "mirror://sourceforge/jedit/jedit${version}source.tar.bz2";
|
||||
sha256 = "5e9ad9c32871b77ef0b9fe46dcfcea57ec52558d36113b7280194a33430b8ceb";
|
||||
};
|
||||
|
||||
setSourceRoot = ''
|
||||
sourceRoot=jEdit
|
||||
'';
|
||||
buildInputs = [ ant jdk ];
|
||||
|
||||
buildPhase = ''
|
||||
ant build
|
||||
'';
|
||||
sourceRoot = "jEdit";
|
||||
|
||||
buildPhase = "ant build";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/jEdit
|
||||
|
@ -35,7 +35,7 @@ stdenv.mkDerivation {
|
|||
patch package-files/linux/jedit << EOF
|
||||
5a6,8
|
||||
> # specify the correct JAVA_HOME
|
||||
> JAVA_HOME=${jre}
|
||||
> JAVA_HOME=${jdk.jre}/lib/openjdk/jre
|
||||
>
|
||||
EOF
|
||||
sed -i "s|/usr/share/jEdit/@jar.filename@|$out/share/jEdit/jedit.jar|g" package-files/linux/jedit
|
||||
|
@ -44,8 +44,6 @@ stdenv.mkDerivation {
|
|||
chmod +x $out/bin/jedit
|
||||
'';
|
||||
|
||||
buildInputs = [ ant ];
|
||||
|
||||
meta = {
|
||||
description = "Mature programmer's text editor (Java based)";
|
||||
homepage = http://www.jedit.org;
|
||||
|
|
Loading…
Reference in a new issue