Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c544cbc
commit 64e7271
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ stdenv, fetchFromGitHub, zlib, jdk }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "avian-${version}"; | ||
version = "1.2.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "readytalk"; | ||
repo = "avian"; | ||
rev = "v${version}"; | ||
sha256 = "1j2y45cpqk3x6a743mgpg7z3ivwm7qc9jy6xirvay7ah1qyxmm48"; | ||
}; | ||
|
||
buildInputs = [ | ||
zlib | ||
jdk | ||
]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp build/*/avian $out/bin/ | ||
cp build/*/avian-dynamic $out/bin/ | ||
''; | ||
|
||
meta = { | ||
description = "Lightweight Java virtual machine"; | ||
longDescription = '' | ||
Avian is a lightweight virtual machine and class library designed | ||
to provide a useful subset of Java’s features, suitable for | ||
building self-contained applications. | ||
''; | ||
homepage = https://readytalk.github.io/avian/; | ||
license = stdenv.lib.licenses.isc; | ||
platforms = stdenv.lib.platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters