diff options
Diffstat (limited to 'pkgs/development/compilers/jasmin/default.nix')
-rw-r--r-- | pkgs/development/compilers/jasmin/default.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/pkgs/development/compilers/jasmin/default.nix b/pkgs/development/compilers/jasmin/default.nix deleted file mode 100644 index e10109979f32..000000000000 --- a/pkgs/development/compilers/jasmin/default.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ lib -, stdenv -, fetchurl -, unzip -, ant -, jdk8 -, makeWrapper -, stripJavaArchivesHook -, callPackage -}: - -let - jdk = jdk8; - jre = jdk8.jre; - -in stdenv.mkDerivation (finalAttrs: { - pname = "jasmin"; - version = "2.4"; - - src = fetchurl { - url = "mirror://sourceforge/jasmin/jasmin-${finalAttrs.version}.zip"; - hash = "sha256-6qEMaM7Gggb9EC6exxE3OezNeQEIoblabow+k/IORJ0="; - }; - - nativeBuildInputs = [ - unzip - ant - jdk - makeWrapper - stripJavaArchivesHook - ]; - - buildPhase = '' - runHook preBuild - ant all - runHook postBuild - ''; - - installPhase = '' - runHook preInstall - - install -Dm644 jasmin.jar $out/share/java/jasmin.jar - makeWrapper ${jre}/bin/java $out/bin/jasmin \ - --add-flags "-jar $out/share/java/jasmin.jar" - - runHook postInstall - ''; - - passthru.tests = { - minimal-module = callPackage ./test-assemble-hello-world {}; - }; - - meta = with lib; { - description = "Assembler for the Java Virtual Machine"; - downloadPage = "https://sourceforge.net/projects/jasmin/files/latest/download"; - homepage = "https://jasmin.sourceforge.net/"; - license = licenses.bsd3; - mainProgram = "jasmin"; - maintainers = with maintainers; [ fgaz ]; - platforms = platforms.all; - }; -}) |