nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchgit,
5 buildPackages,
6 ncurses,
7 tcl,
8 openssl,
9 pam,
10 libkrb5,
11 openldap,
12 libxcrypt,
13 gitUpdater,
14}:
15
16stdenv.mkDerivation (finalAttrs: {
17 pname = "alpine";
18 version = "2.26";
19
20 src = fetchgit {
21 url = "https://repo.or.cz/alpine.git";
22 tag = "v${finalAttrs.version}";
23 hash = "sha256-cJyUBatQBjD6RG+jesJ0JRhWghPRBACc/HQl+2aCTd0=";
24 };
25
26 depsBuildBuild = [ buildPackages.stdenv.cc ];
27
28 buildInputs = [
29 ncurses
30 tcl
31 openssl
32 pam
33 libkrb5
34 openldap
35 libxcrypt
36 ];
37
38 hardeningDisable = [ "format" ];
39
40 configureFlags = [
41 "--with-ssl-include-dir=${openssl.dev}/include/openssl"
42 "--with-passfile=.pine-passfile"
43 "--with-c-client-target=slx"
44 ];
45
46 env.NIX_CFLAGS_COMPILE = toString [
47 # Fixes https://github.com/NixOS/nixpkgs/issues/372699
48 # See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074804
49 "-Wno-incompatible-pointer-types"
50 # Opt out of C23 (and its stricter prototype rules) in GCC15
51 "-std=gnu17"
52 ];
53
54 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
55
56 meta = {
57 description = "Console mail reader";
58 license = lib.licenses.asl20;
59 maintainers = with lib.maintainers; [
60 raskin
61 rhendric
62 ];
63 platforms = lib.platforms.linux;
64 homepage = "https://alpineapp.email/";
65 };
66})