nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
2, qtbase, qttools, sqlite }:
3
4mkDerivation rec {
5 pname = "sqlitebrowser";
6 version = "3.12.1";
7
8 src = fetchFromGitHub {
9 owner = pname;
10 repo = pname;
11 rev = "v${version}";
12 sha256 = "0ray6cscx2qil1dfi7hmpijmq3kba49wn430ih1q4fkz9psjvrz1";
13 };
14
15 # We should be using qscintilla from nixpkgs instead of the vendored version,
16 # but qscintilla is currently in a bit of a mess as some consumers expect a
17 # -qt4 or -qt5 prefix while others do not.
18 # We *really* should get that cleaned up.
19 buildInputs = [ antlr qtbase sqlite ];
20
21 nativeBuildInputs = [ cmake qttools ];
22
23 meta = with lib; {
24 description = "DB Browser for SQLite";
25 homepage = "https://sqlitebrowser.org/";
26 license = licenses.gpl3;
27 maintainers = with maintainers; [ peterhoeg ];
28 platforms = platforms.unix;
29 };
30}