arc_unpacker: add missing hooks and clear up license

wip/little-gl
Felix Rath 3 years ago committed by Jonathan Ringer
parent 59ceb1926a
commit 21108101a5
  1. 10
      pkgs/tools/archivers/arc_unpacker/default.nix

@ -30,17 +30,25 @@ stdenv.mkDerivation rec {
'';
checkPhase = ''
runHook preCheck
pushd ..
./build/run_tests
popd
runHook postCheck
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/doc/arc_unpacker $out/libexec/arc_unpacker
cp arc_unpacker $out/libexec/arc_unpacker/arc_unpacker
cp ../GAMELIST.{htm,js} $out/share/doc/arc_unpacker
cp -r ../etc $out/libexec/arc_unpacker
makeWrapper $out/libexec/arc_unpacker/arc_unpacker $out/bin/arc_unpacker
runHook postInstall
'';
doCheck = true;
@ -48,7 +56,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "A tool to extract files from visual novel archives";
homepage = "https://github.com/vn-tools/arc_unpacker";
license = licenses.gpl3;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ midchildan ];
};
}

Loading…
Cancel
Save