12 stdenv.mkDerivation rec {
13 pname = "wxsqliteplus";
16 src = fetchFromGitHub {
17 owner = "guanlisheng";
18 repo = "wxsqliteplus";
20 sha256 = "0mgfq813pli56mar7pdxlhwjf5k10j196rs3jd0nc8b6dkzkzlnf";
24 sed -i '/WX_CLEAR_ARRAY/s/$/;/' src/{createtable,sqlite3table}.cpp
31 ] ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
35 "LDFLAGS=-L${wxsqlite3}/lib"
37 ++ lib.optionals stdenv.hostPlatform.isDarwin [
38 "SETFILE=${setfile}/bin/SetFile"
42 sed -ie 's|all: $(LIBPREFIX)wxsqlite$(LIBEXT)|all: |g' Makefile
43 sed -ie 's|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) $(LIBPREFIX)wxsqlite$(LIBEXT)|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) |g' Makefile
44 sed -ie 's|-lwxsqlite |-lwxcode_${
45 if stdenv.hostPlatform.isDarwin then "osx_cocoau_wxsqlite3-3.2.0" else "gtk3u_wxsqlite3-3.2"
51 install -D ${lib.optionalString stdenv.hostPlatform.isDarwin "wxsqliteplus.app/Contents/MacOS/"}wxsqliteplus $out/bin/wxsqliteplus
53 + lib.optionalString stdenv.hostPlatform.isDarwin ''
54 mkdir -p $out/Applications
55 mv wxsqliteplus.app $out/Applications/
59 description = "Simple SQLite database browser built with wxWidgets";
60 mainProgram = "wxsqliteplus";
61 homepage = "https://github.com/guanlisheng/wxsqliteplus";
62 license = licenses.gpl3Plus;
64 platforms = platforms.unix;