summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/tools/database/sqlitebrowser/default.nix23
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/tools/database/sqlitebrowser/default.nix b/pkgs/development/tools/database/sqlitebrowser/default.nix
new file mode 100644
index 000000000000..e5c2060b5e9b
--- /dev/null
+++ b/pkgs/development/tools/database/sqlitebrowser/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchzip, qt4, sqlite, cmake }:
+
+stdenv.mkDerivation rec {
+  version = "3.7.0";
+  name = "sqlitebrowser-${version}";
+
+  src = fetchzip {
+    name = "${name}-src";
+    url = "https://github.com/sqlitebrowser/sqlitebrowser/archive/v${version}.tar.gz";
+    sha256 = "1zsgylnxk4lyg7p6k6pv8d3mh1k0wkfcplh5c5da3x3i9a3qs78j";
+  };
+
+  buildInputs = [ qt4 sqlite cmake ];
+
+  meta = with stdenv.lib; {
+    description = "DB Browser for SQLite";
+    homepage = "http://sqlitebrowser.org/";
+    license = licenses.gpl3;
+    maintainers = [ maintainers.matthiasbeyer ];
+    platforms = platforms.linux; # can only test on linux
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e6b9bd719884..889022a60ad0 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -5734,6 +5734,8 @@ let
     flex = flex_2_5_35;
   };
 
+  sqlitebrowser = callPackage ../development/tools/database/sqlitebrowser { };
+
   sselp = callPackage ../tools/X11/sselp{ };
 
   stm32flash = callPackage ../development/tools/misc/stm32flash { };