nixpkgs/pkgs/development/tools/database/sqlitebrowser/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1,006 B
Nix
Raw Normal View History

2021-11-10 03:35:37 +01:00
{ lib, stdenv, mkDerivation, fetchFromGitHub, cmake
, qtbase, qttools, sqlcipher, wrapGAppsHook, qtmacextras
}:
2017-05-17 21:26:11 +02:00
mkDerivation rec {
pname = "sqlitebrowser";
2021-08-18 03:45:07 +02:00
version = "3.12.2";
2016-03-08 02:29:56 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
2020-12-29 22:30:31 +01:00
rev = "v${version}";
2021-08-18 03:45:07 +02:00
sha256 = "sha256-33iVic0kxemWld+SiHOWGlKFSi5fpk1RtLUiNDr7WNI=";
};
# We should be using qscintilla from nixpkgs instead of the vendored version,
# but qscintilla is currently in a bit of a mess as some consumers expect a
# -qt4 or -qt5 prefix while others do not.
# We *really* should get that cleaned up.
2021-11-10 03:35:37 +01:00
buildInputs = [ qtbase sqlcipher ] ++ lib.optionals stdenv.isDarwin [ qtmacextras ];
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ cmake qttools wrapGAppsHook ];
cmakeFlags = [
"-Dsqlcipher=1"
];
2017-05-17 21:26:11 +02:00
meta = with lib; {
description = "DB Browser for SQLite";
homepage = "https://sqlitebrowser.org/";
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
2019-08-26 13:20:59 +02:00
platforms = platforms.unix;
};
}