This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
64 lines (62 loc) · 1.97 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{src, stdenv, fetchzip, pkg-config, autoreconfHook, taler-exchange, taler-merchant, libgcrypt, libmicrohttpd, jansson, libsodium, postgresql, curl, recutils, libuuid, lib, gnunet, gnunet-gtk, anastasis, gtk3, glade, file, qrencode, libextractor, libgnurl}:
let
gnunet' = (gnunet.override { postgresqlSupport = true; });
in
stdenv.mkDerivation rec {
pname = "anastasis-gtk";
version = "0.2.0";
src = fetchzip {
url = "mirror://gnu/anastasis/${pname}-${version}.tar.gz";
sha256 = "sha256-q0G7TymUAlXe1AGyW8NLrbqp/1GXqbS9bVnHVHsVizc=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
# dependencies from anastasis-gtk/README
file
jansson
libgcrypt
postgresql
libmicrohttpd
gnunet'
gnunet-gtk
taler-exchange
anastasis
gtk3
glade
libsodium
curl
qrencode
libextractor
libgnurl
];
configureFlags = [
# GNUNETPFX
"--with-gnunet=${gnunet'}"
# NB: there is a --with-anastasis option
];
# Author said
# "... the anastasis-gtk package expects to be able to install resources into the *anastasis* package
# directory, as the *anastasis* library location is used as the "basic" directory."
preInstall = ''
mkdir -p $out
# NB: not using `lndir` because it misled the search process for *.glade files
cp -r ${anastasis}/. $out/
chmod -R 755 $out
'';
doInstallCheck = true;
postInstallCheck = ''
make check # The author said that checks are made to be executed after install
'';
meta = {
description = ''
GNU Anastasis is a key backup and recovery tool from the GNU project.
This package includes the backend run by the Anastasis providers as
well as libraries for clients and a command-line interface.
'';
license = lib.licenses.gpl3Plus; # from the README
homepage = "https://anastasis.lu";
};
}