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

33 lines
978 B
Nix
Raw Normal View History

2017-05-17 20:26:11 +01:00
{ mkDerivation, lib, fetchFromGitHub, qtbase, qttools, sqlite, cmake }:
2017-05-17 20:26:11 +01:00
mkDerivation rec {
version = "3.9.1";
name = "sqlitebrowser-${version}";
2016-03-08 01:29:56 +00:00
src = fetchFromGitHub {
repo = "sqlitebrowser";
owner = "sqlitebrowser";
rev = "v${version}";
sha256 = "1s7f2d7wx2i68x60z7wdws3il6m83k5n5w5wyjvr0mz0mih0s150";
};
2017-05-03 16:00:04 +01:00
buildInputs = [ qtbase qttools sqlite ];
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DUSE_QT5=TRUE" ];
2017-05-17 20:26:11 +01:00
# A regression was introduced in CMakeLists.txt on v3.9.x
# See https://github.com/sqlitebrowser/sqlitebrowser/issues/832 and issues/755
2017-05-03 16:00:04 +01:00
postPatch = ''
substituteInPlace CMakeLists.txt --replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)'
'';
2017-05-17 20:26:11 +01:00
meta = with lib; {
description = "DB Browser for SQLite";
homepage = "http://sqlitebrowser.org/";
license = licenses.gpl3;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.linux; # can only test on linux
};
}