tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
jpilot: 2.0.1 -> 2.0.2
PapayaJackal
1 year ago
981f762f
e84493b5
+42
-62
3 changed files
expand all
collapse all
unified
split
pkgs
by-name
jp
jpilot
darwin-build.patch
fix-broken-types.patch
package.nix
+31
pkgs/by-name/jp/jpilot/darwin-build.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/configure.in b/configure.in
2
+
index 98055b7..fff401f 100644
3
+
--- a/configure.in
4
+
+++ b/configure.in
5
+
@@ -249,6 +249,11 @@ for pilot_libs in $pilot_prefix/lib /usr/lib /usr/local/lib/ /usr/local/lib64 \
6
+
PILOT_LIBS="-L$pilot_libs $PILOT_LIBS"
7
+
break
8
+
fi
9
+
+ if test -r "$pilot_libs/libpisock.dylib" ; then
10
+
+ pilotlibs=yes
11
+
+ PILOT_LIBS="-L$pilot_libs $PILOT_LIBS"
12
+
+ break
13
+
+ fi
14
+
done
15
+
fi
16
+
17
+
diff --git a/libsqlite.c b/libsqlite.c
18
+
index 9557956..cf0b5ed 100644
19
+
--- a/libsqlite.c
20
+
+++ b/libsqlite.c
21
+
@@ -3,10 +3,10 @@
22
+
Elmar Klausmeier, 20-Sep-2022: Initial revision
23
+
*/
24
+
25
+
+#define _GNU_SOURCE
26
+
#include <stdio.h>
27
+
#include <string.h>
28
+
#include <time.h>
29
+
-extern char *strptime (const char *__restrict __s, const char *__restrict __fmt, struct tm *__tp) __THROW;
30
+
#include <sys/stat.h>
31
+
#include <sqlite3.h>
-54
pkgs/by-name/jp/jpilot/fix-broken-types.patch
···
1
-
From 7ec8251e3570decd97b3050c9ba4fa0d59be93e2 Mon Sep 17 00:00:00 2001
2
-
From: Morgan Kesler <keslerm@aegiszero.is>
3
-
Date: Thu, 13 Oct 2022 15:00:20 -0400
4
-
Subject: [PATCH] Fix broken types from latest pilot-link changes
5
-
6
-
Last year an update to the pilot link source broke this, it's part of
7
-
the patch from here https://github.com/desrod/pilot-link/pull/3
8
-
9
-
This is simply updating the types to match the changes
10
-
---
11
-
contact.c | 2 +-
12
-
jp-contact.c | 2 +-
13
-
jp-pi-contact.h | 2 +-
14
-
3 files changed, 3 insertions(+), 3 deletions(-)
15
-
16
-
diff --git a/contact.c b/contact.c
17
-
index 5ca3df68..f4fd6be1 100644
18
-
--- a/contact.c
19
-
+++ b/contact.c
20
-
@@ -442,7 +442,7 @@ int copy_address_to_contact(const struct Address *a, struct Contact *c)
21
-
c->advance = 0;
22
-
c->advanceUnits = 0;
23
-
memset(&(c->birthday), 0, sizeof(struct tm));
24
-
- for (i=0; i<MAX_CONTACT_BLOBS; i++) {
25
-
+ for (i=0; i<MAX_BLOBS; i++) {
26
-
c->blob[i] = NULL;
27
-
}
28
-
c->picture = NULL;
29
-
diff --git a/jp-contact.c b/jp-contact.c
30
-
index 88d7f7f9..1d02ef2c 100644
31
-
--- a/jp-contact.c
32
-
+++ b/jp-contact.c
33
-
@@ -54,7 +54,7 @@ int jp_pack_Contact(struct Contact *c, pi_buffer_t *buf)
34
-
return pack_Contact(c, buf, contacts_v10);
35
-
}
36
-
37
-
-int jp_Contact_add_blob(struct Contact *c, struct ContactBlob *blob)
38
-
+int jp_Contact_add_blob(struct Contact *c, Blob_t *blob)
39
-
{
40
-
return Contact_add_blob(c, blob);
41
-
}
42
-
diff --git a/jp-pi-contact.h b/jp-pi-contact.h
43
-
index f36e679d..320dc76a 100644
44
-
--- a/jp-pi-contact.h
45
-
+++ b/jp-pi-contact.h
46
-
@@ -47,7 +47,7 @@ extern int jp_pack_ContactAppInfo
47
-
PI_ARGS((struct ContactAppInfo *, pi_buffer_t *buf));
48
-
49
-
extern int jp_Contact_add_blob
50
-
- PI_ARGS((struct Contact *, struct ContactBlob *));
51
-
+ PI_ARGS((struct Contact *, Blob_t *));
52
-
extern int jp_Contact_add_picture
53
-
PI_ARGS((struct Contact *, struct ContactPicture *));
54
-
#ifdef __cplusplus
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
+11
-8
pkgs/by-name/jp/jpilot/package.nix
···
3
stdenv,
4
fetchFromGitHub,
5
autoreconfHook,
0
6
gtk3,
7
intltool,
8
libgcrypt,
9
pilot-link,
10
pkg-config,
11
-
slang,
12
}:
13
14
-
stdenv.mkDerivation {
15
pname = "jpilot";
16
-
version = "2.0.1";
17
18
src = fetchFromGitHub {
19
owner = "juddmon";
20
repo = "jpilot";
21
-
rev = "v2_0_1";
22
-
hash = "sha256-CHCNDoYPi+2zMKkI6JIecmiWMvMF6WsgBZ6Ubfl0RJU=";
23
};
24
25
-
patches = [ ./fix-broken-types.patch ];
26
27
nativeBuildInputs = [
28
autoreconfHook
29
intltool
30
pkg-config
0
31
];
0
32
buildInputs = [
33
gtk3
34
libgcrypt
35
-
pilot-link
36
-
slang
37
];
38
39
preConfigure = ''
···
46
description = "Desktop organizer software for the Palm Pilot";
47
homepage = "https://www.jpilot.org/";
48
license = lib.licenses.gpl2;
0
49
maintainers = with lib.maintainers; [ PapayaJackal ];
50
};
51
}
···
3
stdenv,
4
fetchFromGitHub,
5
autoreconfHook,
6
+
wrapGAppsHook3,
7
gtk3,
8
intltool,
9
libgcrypt,
10
pilot-link,
11
pkg-config,
12
+
sqlite,
13
}:
14
15
+
stdenv.mkDerivation rec {
16
pname = "jpilot";
17
+
version = "2.0.2";
18
19
src = fetchFromGitHub {
20
owner = "juddmon";
21
repo = "jpilot";
22
+
rev = "v${lib.replaceStrings [ "." ] [ "_" ] version}";
23
+
hash = "sha256-ja/P6kq53C7drEPWemGMV5fB4BktHrbrxL39jLEGhRI=";
24
};
25
26
+
patches = [ ./darwin-build.patch ]; # https://github.com/juddmon/jpilot/pull/59
27
28
nativeBuildInputs = [
29
autoreconfHook
30
intltool
31
pkg-config
32
+
wrapGAppsHook3
33
];
34
+
35
buildInputs = [
36
gtk3
37
libgcrypt
38
+
sqlite
0
39
];
40
41
preConfigure = ''
···
48
description = "Desktop organizer software for the Palm Pilot";
49
homepage = "https://www.jpilot.org/";
50
license = lib.licenses.gpl2;
51
+
mainProgram = "jpilot";
52
maintainers = with lib.maintainers; [ PapayaJackal ];
53
};
54
}