about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/un/undbx/package.nix
blob: 69db03479e995f72939a653e9788ea0e0e48b355 (plain) (blame)
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
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "undbx";
  version = "0.22-unstable-2019-02-11";

  src = fetchFromGitHub {
    owner = "ZungBang";
    repo = "undbx";
    rev = "5e31c757e137a6409115cac0623d61d384019b7a";
    hash = "sha256-leregcv3dv/D3WvFkYyjQePdKi4BgE0aj5PY6JiSKl8=";
  };

  nativeBuildInputs = [ autoreconfHook ];

  postPatch = ''
    substituteInPlace Makefile.am \
      --replace-fail "-Werror" "" \
      --replace-fail "bin_SCRIPTS" "#bin_SCRIPTS"
  '';
  meta = with lib; {
    description = "Extract e-mail messages from Outlook Express DBX files";
    homepage = "https://github.com/ZungBang/undbx";
    maintainers = with maintainers; [ d3vil0p3r ];
    platforms = platforms.unix;
    license = licenses.gpl3Plus;
    mainProgram = "undbx";
  };
})