Package Details: tttool-git 1.6-1

Git Clone URL: https://aur.archlinux.org/tttool-git.git (read-only, click to copy)
Package Base: tttool-git
Description: tool for compiling and decompiling gme files for tiptoi pen
Upstream URL: http://tttool.entropia.de
Licenses: custom
Conflicts: tttool
Provides: tttool
Submitter: mockfrog
Maintainer: None
Last Packager: mockfrog
Votes: 2
Popularity: 0.000322
First Submitted: 2016-02-08 20:04 (UTC)
Last Updated: 2016-02-08 20:06 (UTC)

Latest Comments

TrialnError commented on 2023-07-06 20:11 (UTC) (edited on 2023-07-06 20:13 (UTC) by TrialnError)

Install instructions need some updates.
Formally this package shouldn't build a fixed tag. A non VCS package should be uploaded
cabal sandbox init doesn't work anymore, as the sandbox got removed from cabal. Removing the line seems okay, but...
With the release of 1.11 the project hardcodes GHC 9.2.4 as the compiler. Arch still packages 9.0.x.
The way of using the nix is as such a no-go. Especially the provided PKGBUILD below, as it uses sudo

ColdSphinX commented on 2022-01-04 13:53 (UTC) (edited on 2022-01-04 16:19 (UTC) by ColdSphinX)

Ok, I found out that cabal sandbox is discontinued and they switched to "nix" anyway. I tried to run the build commands as non-root setting TMPDIR and NIX_REMOTE envvars otherwise I get inaccessible sockets and such but I never got it to fully build as non-root. Using sudo in a build script is not a real solution for me so I recomend you only build this package on a dedicated VM also it will remove everything you installed using "nix".

For anyone trying to give it a shot:
# The following guidelines are specific to BZR, GIT, HG and SVN packages.
# Other VCS sources are not natively supported by makepkg yet.

# Maintainer: none
pkgname=tttool-git
pkgver=1.10
pkgrel=1
_prjname="tip-toi-reveng"
pkgdesc="tool for compiling and decompiling gme files for tiptoi pen"
arch=('i686' 'x86_64')
url="http://tttool.entropia.de"
license=('custom')
groups=()
depends=('gmp' 'libffi' 'zlib' 'nix')
makedepends=('git' 'ghc' 'cabal-install' 'chrpath' 'rsync')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=
source=("git+https://github.com/entropia/${_prjname}.git")
noextract=()
md5sums=('SKIP')

build() {
    cd "$srcdir/${_prjname}"
    #[ -d "nix.tmp" ] || mkdir "nix.tmp"
    #export TMPDIR=$srcdir/${_prjname}/nix.tmp/
    #export NIX_REMOTE=$srcdir/${_prjname}/nix.tmp/socket/
    sudo nix-env -iA cachix -f https://cachix.org/api/v1/install
    sudo cachix use tttool
    sudo nix-build -A linux-exe
    sudo nix-env -e '.*'
    sudo nix-store --gc
}

package() {
    cd "$srcdir/${_prjname}"
    install -Dp -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
    install -Dp -m755 result/bin/tttool "${pkgdir}/usr/bin/tttool"
    libs=($(strings "${pkgdir}/usr/bin/tttool" | grep ":/nix/store" | sed 's/:/\n/g' | grep -v tttool))
    for lib in ${libs[@]}
    do
        mkdir -p "${pkgdir}${lib%lib}"
        rsync -az "${lib%lib}" "${pkgdir}${lib%lib}"
    done
    sudo nix-store --delete --ignore-liveness /nix/store/*
}

keiki commented on 2021-03-16 08:56 (UTC)

It fails for me with:

cabal: unrecognised command: sandbox (try --help)

Does someone have a hint? Am I missing a dependency?

mmccoo commented on 2019-01-24 09:46 (UTC)

I had some trouble installing tttool from their git because I keep my home dir on a smaller disk. Haskell's stack infrastructure wants, in my case, 5.4GB.

To accommodate this, I did: export STACK_ROOT=<path to some disk with space>

I also did 'stack init' before the stack install line, but I can't say for sure it's required.

erictronic commented on 2018-03-28 00:03 (UTC)

During installation with yaourt or pamec i got this build error: ... ==> Beginne build()... Writing a default package environment file to /tmp/pamac-build-eric/tttool-git/src/tip-toi-reveng/cabal.sandbox.config Creating a new sandbox at /tmp/pamac-build-eric/tttool-git/src/tip-toi-reveng/.cabal-sandbox Resolving dependencies... cabal: Could not resolve dependencies: next goal: tttool (user goal) rejecting: tttool-1.8, tttool-1.7.0.3, tttool-1.7.0.2, tttool-1.7.0.1, tttool-1.6.1.4, tttool-1.6.1.3, tttool-1.6.1.2, tttool-1.6.1.1, tttool-1.6.1, tttool-1.6.0.1 (constraint from user target requires ==1.6) trying: tttool-1.6 next goal: base (dependency of tttool-1.6) rejecting: base-4.10.1.0/installed-4.1... (conflict: tttool => base>=4.5 && <4.10) rejecting: base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from non-upgradeable package requires installed instance) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: base, tttool Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox. ==> FEHLER: Ein Fehler geschah in build(). Breche ab... ...

What is going wrong?

thx, Eric

mavrix commented on 2016-11-09 12:55 (UTC)

Had to set version to 1.6.1.3 for this to build.