nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 wrapGAppsHook3,
7 gtk3,
8 intltool,
9 libgcrypt,
10 pilot-link,
11 pkg-config,
12 sqlite,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "jpilot";
17 version = "2.0.2";
18
19 src = fetchFromGitHub {
20 owner = "juddmon";
21 repo = "jpilot";
22 rev = "v${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.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
39 ];
40
41 preConfigure = ''
42 NOCONFIGURE=1 ./autogen.sh
43 '';
44
45 configureFlags = [ "--with-pilot-prefix=${pilot-link}" ];
46
47 meta = {
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})