Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2ac6d50e1696
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a638df745d04
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 14, 2020

  1. Copy the full SHA
    302cbf1 View commit details
  2. Merge pull request #97028 from midchildan/package/arc_unpacker

    arc_unpacker: init at b9843a1
    timokau authored Nov 14, 2020
    Copy the full SHA
    a638df7 View commit details
Showing with 49 additions and 0 deletions.
  1. +47 −0 pkgs/tools/archivers/arc_unpacker/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
47 changes: 47 additions & 0 deletions pkgs/tools/archivers/arc_unpacker/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ stdenv, fetchFromGitHub, cmake, makeWrapper, boost, libpng, libjpeg, zlib
, openssl, libwebp, catch }:

stdenv.mkDerivation rec {
pname = "arc_unpacker-unstable";
version = "2019-01-28";

src = fetchFromGitHub {
owner = "vn-tools";
repo = "arc_unpacker";
# Since the latest release (0.11) doesn't build, we've opened an upstream
# issue in https://github.com/vn-tools/arc_unpacker/issues/187 to ask if a
# a new release is upcoming
rev = "b9843a13e2b67a618020fc12918aa8d7697ddfd5";
sha256 = "0wpl30569cip3im40p3n22s11x0172a3axnzwmax62aqlf8kdy14";
};

nativeBuildInputs = [ cmake makeWrapper catch ];
buildInputs = [ boost libpng libjpeg zlib openssl libwebp ];

postPatch = ''
cp ${catch}/include/catch/catch.hpp tests/test_support/catch.h
'';

checkPhase = ''
pushd ..
./build/run_tests
popd
'';

installPhase = ''
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
'';

doCheck = true;

meta = with stdenv.lib; {
description = "A tool to extract files from visual novel archives";
homepage = "https://github.com/vn-tools/arc_unpacker";
license = licenses.gpl3;
maintainers = with maintainers; [ midchildan ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -603,6 +603,8 @@ in

adlplug = callPackage ../applications/audio/adlplug { };

arc_unpacker = callPackage ../tools/archivers/arc_unpacker { };

tuijam = callPackage ../applications/audio/tuijam { inherit (python3Packages) buildPythonApplication; };

opnplug = callPackage ../applications/audio/adlplug {