2021-01-22 12:25:31 +01:00
|
|
|
{lib, stdenv, fetchurl, ant, jre, jdk}:
|
2016-12-13 16:25:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abcl";
|
2020-10-29 22:42:11 +01:00
|
|
|
version = "1.8.0";
|
2016-12-13 16:25:04 +01:00
|
|
|
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://common-lisp.net/project/armedbear/releases/${version}/${pname}-src-${version}.tar.gz";
|
2020-11-13 13:56:57 +01:00
|
|
|
sha256 = "0zr5mmqyj484vza089l8vc88d07g0m8ymxzglvar3ydwyvi1x1qx";
|
2016-12-13 16:25:04 +01:00
|
|
|
};
|
|
|
|
configurePhase = ''
|
|
|
|
mkdir nix-tools
|
|
|
|
export PATH="$PWD/nix-tools:$PATH"
|
|
|
|
echo "echo nix-builder.localdomain" > nix-tools/hostname
|
|
|
|
chmod a+x nix-tools/*
|
|
|
|
|
|
|
|
hostname
|
|
|
|
'';
|
|
|
|
buildPhase = ''
|
|
|
|
ant
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/doc/abcl,lib/abcl}
|
|
|
|
cp -r README COPYING CHANGES examples/ "$out/share/doc/abcl/"
|
|
|
|
cp -r dist/*.jar contrib/ "$out/lib/abcl/"
|
|
|
|
|
|
|
|
echo "#! ${stdenv.shell}" >> "$out/bin/abcl"
|
|
|
|
echo "${jre}/bin/java -cp \"$out/lib/abcl/abcl.jar:$out/lib/abcl/abcl-contrib.jar:\$CLASSPATH\" org.armedbear.lisp.Main \"\$@\"" >> "$out/bin/abcl"
|
|
|
|
chmod a+x "$out"/bin/*
|
|
|
|
'';
|
|
|
|
buildInputs = [jre ant jdk jre];
|
|
|
|
meta = {
|
2021-01-16 05:20:42 +01:00
|
|
|
description = "A JVM-based Common Lisp implementation";
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.gpl3 ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://common-lisp.net/project/armedbear/";
|
2016-12-13 16:25:04 +01:00
|
|
|
};
|
|
|
|
}
|