Package Details: simplex-chat-git v1.3.1.r34.g22ff17ae-1

Git Clone URL: https://aur.archlinux.org/simplex-chat-git.git (read-only, click to copy)
Package Base: simplex-chat-git
Description: a 100% private-by-design chat platform
Upstream URL: https://github.com/simplex-chat/simplex-chat
Licenses: AGPL3
Conflicts: simplex-chat
Provides: simplex-chat
Submitter: bobpaul
Maintainer: emilss
Last Packager: bobpaul
Votes: 2
Popularity: 0.38
First Submitted: 2022-03-10 03:13 (UTC)
Last Updated: 2022-03-13 03:40 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

elmiar0246 commented on 2024-06-27 09:03 (UTC) (edited on 2024-06-27 09:04 (UTC) by elmiar0246)

$ yay -S simplex-chat-git

failed, so i cloned the repo and tried installing using

$ makepkg -si

it threw some error regarding wanting me to run "stack init".

manually appended the command into PKGBUILD file and tried building. since then I am facing the following error: https://pastebin.com/hiSdntxc

contents of PKGBUILD file are as follows:

# Maintainer: bobpaul <aurpackage [at] bobpaul 'period' org>
pkgname="simplex-chat-git"
pkgver=v5.8.1.r0.g85dc467f7
pkgrel=1
pkgdesc='a 100% private-by-design chat platform'
arch=("x86_64")
url="https://github.com/simplex-chat/simplex-chat"
license=('AGPL3')
groups=()
makedepends=('stack' 'git')
provides=('simplex-chat')
conflicts=('simplex-chat')
source=('git+https://github.com/simplex-chat/simplex-chat.git#branch=stable')
md5sums=('SKIP')

builddir="${pkgname/-git/}"
build() {
    cd "$builddir"
    rm -rf .stack-work
    stack init
    stack build --omit-packages --resolver
}

pkgver(){
    cd "$builddir"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$builddir"
    stack install --local-bin-path "$pkgdir"/usr/bin
}

dreieck commented on 2023-11-25 09:52 (UTC)

build() wants to download some stuff. Can you move all downloads that are not possible to get via the source array into prepare(), so that build() can run without internet connection?

Furthermore, build() fails for me with HttpExceptionRequest:

==> Starting build()...
No cryptographic hash found for Hackage package cryptostore-0.2.1.0, updating
Selected mirror https://hackage.haskell.org/
Downloading root
HttpExceptionRequest Request {
  host                 = "hackage.haskell.org"
  port                 = 443
  secure               = True
  requestHeaders       = [("Accept-Encoding",""),("User-Agent","Haskell pantry package")]
  path                 = "/root.json"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
  proxySecureMode      = ProxySecureWithConnect
}
 (ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just "hackage.haskell.org", service name: Just "443"): does not exist (Temporary failure in name resolution))

Regards!

dreieck commented on 2023-11-25 09:30 (UTC)

Can you please strip off the leading v from $pkgver as required by the Arch Linux VCS packaging guidelines?
Thanks for maintaining!

bobpaul commented on 2023-07-20 20:34 (UTC) (edited on 2023-07-20 20:36 (UTC) by bobpaul)

It looks like they changed the build system to from using stack to using cabal+ghc (you can see this in their Dockerfile which was updated months ago). The error in question is complaining that the sockets library is missing; this is something that should be declared in stacks.yaml or cabal.yaml and get installed while haskell is building the project.

They still have a stack.yaml so it might be a bug that it doesn't build with stack or maybe they just forgot to delete stack.yaml. I don't normally work with haskell, so I'll just ask them.

I did get it building on my system using cabal and an older version of ghc (from aur). I'll get an updated PKGBUILD released soon.

tatsumaru commented on 2023-07-05 21:41 (UTC) (edited on 2023-07-05 21:41 (UTC) by tatsumaru)

Package building failed on Gnome. Any ideas?

simplexmq                        > 169 |     Just username -> socksConnectAuth (defaultSocksConf addr) (SocksAddress hostAddr port) (SocksCredentials username "")
simplexmq                        >     |                      ^^^^^^^^^^^^^^^^
simplexmq                        > 
simplexmq                        > /tmp/stack-0cd022293a455f1b/simplexmq-5.1.1/src/Simplex/Messaging/Transport/Client.hs:169:93: error:
simplexmq                        >     Data constructor not in scope:
simplexmq                        >       SocksCredentials :: ByteString -> t1 -> t0
simplexmq                        >     |
simplexmq                        > 169 |     Just username -> socksConnectAuth (defaultSocksConf addr) (SocksAddress hostAddr port) (SocksCredentials username "")
simplexmq                        >     |                                                                                             ^^^^^^^^^^^^^^^^
simplexmq                        > 
Progress 120/121

--  While building package simplexmq-5.1.1 (scroll up to its section to see the error) using:
      /home/user/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
==> ERROR: A failure occurred in build().
    Aborting...

bobpaul commented on 2022-03-13 03:41 (UTC)

Thanks! I've merged your changes in.

HalosGhost commented on 2022-03-12 20:56 (UTC)

Thank you for taking a look at packaging this! I cleaned up your PKGBUILD a bit so that I could use it myself:

# Maintainer: bobpaul <aurpackage [at] bobpaul 'period' org>
pkgname="simplex-chat-git"
pkgver=0
pkgrel=1
pkgdesc='a 100% private-by-design chat platform'
arch=("x86_64")
url="https://github.com/simplex-chat/simplex-chat"
license=('AGPL3')
makedepends=('stack' 'git')
provides=('simplex-chat')
conflicts=('simplex-chat')
source=('git+https://github.com/simplex-chat/simplex-chat.git#branch=stable')
md5sums=('SKIP')

builddir="${pkgname/-git/}"
build() {
    cd "$builddir"
    rm -rf .stack-work
    stack build
}

pkgver(){
    cd "$builddir"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$builddir"
    stack install --local-bin-path "$pkgdir"/usr/bin
}

All the best,

-HG