about summary refs log tree commit diff
path: root/pkgs/applications/misc/flamerobin/default.nix
blob: 5fd805994a6e54afe1a08e8cc6944c8119dfdb14 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, wxGTK32
, boost
, firebird
}:

stdenv.mkDerivation rec {
  version = "0.9.3.12";
  pname = "flamerobin";

  src = fetchFromGitHub {
    owner = "mariuz";
    repo = "flamerobin";
    rev = version;
    sha256 = "sha256-uWx3riRc79VKh7qniWFjxxc7v6l6cW0i31HxoN1BSdA=";
  };

  patches = [
    # rely on compiler command line for __int128 and std::decimal::decimal128
    (fetchpatch {
      url = "https://github.com/mariuz/flamerobin/commit/8e0ea6d42aa28a4baeaa8c8b8b57c56eb9ae3540.patch";
      sha256 = "sha256-l6LWXA/sRQGQKi798bzl0iIJ2vdvXHOjG7wdFSXv+NM=";
    })
  ];

  enableParallelBuilding = true;

  nativeBuildInputs = [ cmake ];

  buildInputs = [
    wxGTK32
    boost
    firebird
  ];

  meta = with lib; {
    description = "Database administration tool for Firebird RDBMS";
    homepage = "https://github.com/mariuz/flamerobin";
    license = licenses.bsdOriginal;
    maintainers = with maintainers; [ uralbash ];
    platforms = platforms.unix;
  };
}