nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, autoreconfHook
5, wxGTK
6, sqlite
7, Cocoa
8, setfile
9, rez
10, derez
11, wxmac
12}:
13
14stdenv.mkDerivation rec {
15 pname = "wxsqlite3";
16 version = "4.7.6";
17
18 src = fetchFromGitHub {
19 owner = "utelle";
20 repo = "wxsqlite3";
21 rev = "v${version}";
22 hash = "sha256-QoICP66eluD5phYVi1iK8tg1FL04EQjY29/4n6SIz3s=";
23 };
24
25 nativeBuildInputs = [ autoreconfHook ];
26
27 buildInputs = [ sqlite ]
28 ++ lib.optionals (!stdenv.isDarwin) [ wxGTK ]
29 ++ lib.optionals (stdenv.isDarwin) [ Cocoa setfile rez derez wxmac ];
30
31 meta = with lib; {
32 homepage = "https://utelle.github.io/wxsqlite3/";
33 description = "A C++ wrapper around the public domain SQLite 3.x for wxWidgets";
34 platforms = platforms.unix;
35 maintainers = with maintainers; [ vrthra ];
36 license = with licenses; [ lgpl3Plus gpl3Plus ];
37 };
38}