tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
jpilot: init at 2.0.1
PapayaJackal
1 year ago
e84493b5
912167e3
+105
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
jp
jpilot
fix-broken-types.patch
package.nix
+54
pkgs/by-name/jp/jpilot/fix-broken-types.patch
···
1
1
+
From 7ec8251e3570decd97b3050c9ba4fa0d59be93e2 Mon Sep 17 00:00:00 2001
2
2
+
From: Morgan Kesler <keslerm@aegiszero.is>
3
3
+
Date: Thu, 13 Oct 2022 15:00:20 -0400
4
4
+
Subject: [PATCH] Fix broken types from latest pilot-link changes
5
5
+
6
6
+
Last year an update to the pilot link source broke this, it's part of
7
7
+
the patch from here https://github.com/desrod/pilot-link/pull/3
8
8
+
9
9
+
This is simply updating the types to match the changes
10
10
+
---
11
11
+
contact.c | 2 +-
12
12
+
jp-contact.c | 2 +-
13
13
+
jp-pi-contact.h | 2 +-
14
14
+
3 files changed, 3 insertions(+), 3 deletions(-)
15
15
+
16
16
+
diff --git a/contact.c b/contact.c
17
17
+
index 5ca3df68..f4fd6be1 100644
18
18
+
--- a/contact.c
19
19
+
+++ b/contact.c
20
20
+
@@ -442,7 +442,7 @@ int copy_address_to_contact(const struct Address *a, struct Contact *c)
21
21
+
c->advance = 0;
22
22
+
c->advanceUnits = 0;
23
23
+
memset(&(c->birthday), 0, sizeof(struct tm));
24
24
+
- for (i=0; i<MAX_CONTACT_BLOBS; i++) {
25
25
+
+ for (i=0; i<MAX_BLOBS; i++) {
26
26
+
c->blob[i] = NULL;
27
27
+
}
28
28
+
c->picture = NULL;
29
29
+
diff --git a/jp-contact.c b/jp-contact.c
30
30
+
index 88d7f7f9..1d02ef2c 100644
31
31
+
--- a/jp-contact.c
32
32
+
+++ b/jp-contact.c
33
33
+
@@ -54,7 +54,7 @@ int jp_pack_Contact(struct Contact *c, pi_buffer_t *buf)
34
34
+
return pack_Contact(c, buf, contacts_v10);
35
35
+
}
36
36
+
37
37
+
-int jp_Contact_add_blob(struct Contact *c, struct ContactBlob *blob)
38
38
+
+int jp_Contact_add_blob(struct Contact *c, Blob_t *blob)
39
39
+
{
40
40
+
return Contact_add_blob(c, blob);
41
41
+
}
42
42
+
diff --git a/jp-pi-contact.h b/jp-pi-contact.h
43
43
+
index f36e679d..320dc76a 100644
44
44
+
--- a/jp-pi-contact.h
45
45
+
+++ b/jp-pi-contact.h
46
46
+
@@ -47,7 +47,7 @@ extern int jp_pack_ContactAppInfo
47
47
+
PI_ARGS((struct ContactAppInfo *, pi_buffer_t *buf));
48
48
+
49
49
+
extern int jp_Contact_add_blob
50
50
+
- PI_ARGS((struct Contact *, struct ContactBlob *));
51
51
+
+ PI_ARGS((struct Contact *, Blob_t *));
52
52
+
extern int jp_Contact_add_picture
53
53
+
PI_ARGS((struct Contact *, struct ContactPicture *));
54
54
+
#ifdef __cplusplus
+51
pkgs/by-name/jp/jpilot/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
autoreconfHook,
6
6
+
gtk3,
7
7
+
intltool,
8
8
+
libgcrypt,
9
9
+
pilot-link,
10
10
+
pkg-config,
11
11
+
slang,
12
12
+
}:
13
13
+
14
14
+
stdenv.mkDerivation {
15
15
+
pname = "jpilot";
16
16
+
version = "2.0.1";
17
17
+
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "juddmon";
20
20
+
repo = "jpilot";
21
21
+
rev = "v2_0_1";
22
22
+
hash = "sha256-CHCNDoYPi+2zMKkI6JIecmiWMvMF6WsgBZ6Ubfl0RJU=";
23
23
+
};
24
24
+
25
25
+
patches = [ ./fix-broken-types.patch ];
26
26
+
27
27
+
nativeBuildInputs = [
28
28
+
autoreconfHook
29
29
+
intltool
30
30
+
pkg-config
31
31
+
];
32
32
+
buildInputs = [
33
33
+
gtk3
34
34
+
libgcrypt
35
35
+
pilot-link
36
36
+
slang
37
37
+
];
38
38
+
39
39
+
preConfigure = ''
40
40
+
NOCONFIGURE=1 ./autogen.sh
41
41
+
'';
42
42
+
43
43
+
configureFlags = [ "--with-pilot-prefix=${pilot-link}" ];
44
44
+
45
45
+
meta = {
46
46
+
description = "Desktop organizer software for the Palm Pilot";
47
47
+
homepage = "https://www.jpilot.org/";
48
48
+
license = lib.licenses.gpl2;
49
49
+
maintainers = with lib.maintainers; [ PapayaJackal ];
50
50
+
};
51
51
+
}