2016-07-05 21:14:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, wxGTK, wxsqlite3, sqlite }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wxsqliteplus";
|
2016-07-05 21:14:58 +01:00
|
|
|
version = "0.3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guanlisheng";
|
|
|
|
repo = "wxsqliteplus";
|
|
|
|
rev = "v${version}";
|
2020-05-05 18:31:20 +01:00
|
|
|
sha256 = "0mgfq813pli56mar7pdxlhwjf5k10j196rs3jd0nc8b6dkzkzlnf";
|
2016-07-05 21:14:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ wxGTK wxsqlite3 sqlite ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"LDFLAGS=-L${wxsqlite3}/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
sed -ie 's|all: $(LIBPREFIX)wxsqlite$(LIBEXT)|all: |g' Makefile
|
|
|
|
sed -ie 's|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) $(LIBPREFIX)wxsqlite$(LIBEXT)|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) |g' Makefile
|
|
|
|
sed -ie 's|-lwxsqlite |-lwxcode_gtk2u_wxsqlite3-3.0 |g' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-05-05 18:31:20 +01:00
|
|
|
install -D wxsqliteplus $out/bin/wxsqliteplus
|
2016-07-05 21:14:58 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-05-05 18:31:20 +01:00
|
|
|
homepage = "https://github.com/guanlisheng/wxsqliteplus";
|
2016-07-05 21:14:58 +01:00
|
|
|
description = "A simple SQLite database browser built with wxWidgets";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|