From 881ba7309cad8e29839069d48183d12d07ef5e3a Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Tue, 5 Jul 2016 13:14:58 -0700 Subject: [PATCH] wxsqliteplus: init at 0.3.6 --- .../libraries/wxsqliteplus/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/libraries/wxsqliteplus/default.nix diff --git a/pkgs/development/libraries/wxsqliteplus/default.nix b/pkgs/development/libraries/wxsqliteplus/default.nix new file mode 100644 index 000000000000..998f6a9e5f69 --- /dev/null +++ b/pkgs/development/libraries/wxsqliteplus/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, wxGTK, wxsqlite3, sqlite }: + +stdenv.mkDerivation rec { + name = "wxsqliteplus-${version}"; + version = "0.3.6"; + + src = fetchFromGitHub { + owner = "guanlisheng"; + repo = "wxsqliteplus"; + rev = "v${version}"; + sha1 = "yr9ysviv4hbrxn900z1wz8j32frimvx1"; + }; + + 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 = '' + mkdir -p $out/bin + cp wxsqliteplus $out/bin/ + ''; + + meta = with stdenv.lib; { + homepage = http://guanlisheng.com/; + description = "A simple SQLite database browser built with wxWidgets"; + platforms = platforms.unix; + maintainers = with maintainers; [ vrthra ]; + license = licenses.gpl2; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b056fa699902..eee9c03cec62 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17204,6 +17204,10 @@ in wxGTK = wxGTK30; }; + wxsqliteplus = callPackage ../development/libraries/wxsqliteplus { + wxGTK = wxGTK30; + }; + x2x = callPackage ../tools/X11/x2x { }; xboxdrv = callPackage ../misc/drivers/xboxdrv { };