Unverified Commit 1c82c619 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

openjump: add missing phase hooks

parent c3ccab0b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -24,8 +24,10 @@ stdenv.mkDerivation (finalAttrs: {

  # TODO: build from source
  unpackPhase = ''
    runHook preUnpack
    mkdir -p $out/opt
    unzip $src -d $out/opt
    runHook postUnpack
  '';

  nativeBuildInputs = [
@@ -34,6 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  installPhase = ''
    runHook preInstall
    dir=$(echo $out/opt/OpenJUMP-*)

    chmod +x "$dir/bin/oj_linux.sh"
@@ -48,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
          findutils
        ]
      }
    runHook postInstall
  '';

  meta = {