about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2016-12-13 16:25:04 +0100
committerMichael Raskin <7c6f434c@mail.ru>2016-12-13 16:25:24 +0100
commit1d0fb40af004a760996780548e6872941fe61d54 (patch)
tree4fb8a32f9351b8fe2a4add1d4f77fd9509bb3187 /pkgs/development/compilers
parent140643be451fa8c5d9c47eac2ca7a3a193ee6efa (diff)
downloadnixlib-1d0fb40af004a760996780548e6872941fe61d54.tar
nixlib-1d0fb40af004a760996780548e6872941fe61d54.tar.gz
nixlib-1d0fb40af004a760996780548e6872941fe61d54.tar.bz2
nixlib-1d0fb40af004a760996780548e6872941fe61d54.tar.lz
nixlib-1d0fb40af004a760996780548e6872941fe61d54.tar.xz
nixlib-1d0fb40af004a760996780548e6872941fe61d54.tar.zst
nixlib-1d0fb40af004a760996780548e6872941fe61d54.zip
abcl: init at 1.4.0
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/abcl/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/compilers/abcl/default.nix b/pkgs/development/compilers/abcl/default.nix
new file mode 100644
index 000000000000..c296f690fa52
--- /dev/null
+++ b/pkgs/development/compilers/abcl/default.nix
@@ -0,0 +1,40 @@
+{stdenv, fetchurl, ant, jre, jdk}:
+stdenv.mkDerivation rec {
+  name = "${pname}-${version}";
+  pname = "abcl";
+  version = "1.4.0";
+  # or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
+  src = fetchurl {
+    url = "https://common-lisp.net/project/armedbear/releases/${version}/${pname}-src-${version}.tar.gz";
+    sha256 = "1y4nixm1459ch6226ikdilcsf91c2rg1d82cqqmcn24kfjl1m62i";
+  };
+  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 = {
+    inherit version;
+    description = ''A JVM-based Common Lisp implementation'';
+    license = stdenv.lib.licenses.gpl3 ;
+    maintainers = [stdenv.lib.maintainers.raskin];
+    platforms = stdenv.lib.platforms.linux;
+    homepage = "https://common-lisp.net/project/armedbear/";
+  };
+}