Files

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

59 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
makeWrapper,
wxGTK32,
wxsqlite3,
sqlite,
}:
stdenv.mkDerivation rec {
pname = "wxsqliteplus";
version = "0.4.0";
src = fetchFromGitHub {
owner = "guanlisheng";
repo = "wxsqliteplus";
rev = "v${version}";
hash = "sha256-gyH1Wlmg9xQy7xm7rhKZa7BFTFFN4JQHp3CHmzMkVOg=";
};
nativeBuildInputs = [
cmake
pkg-config
makeWrapper
];
buildInputs = [
wxGTK32
wxsqlite3
sqlite
];
cmakeFlags = [
"-DWXSQLITE3_HAVE_CODEC=1"
];
installPhase =
lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/{Applications,bin}
mv wxSQLitePlus.app $out/Applications
makeWrapper $out/{Applications/wxSQLitePlus.app/Contents/MacOS,bin}/wxSQLitePlus
''
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
install -Dm755 wxSQLitePlus $out/bin/wxSQLitePlus
'';
meta = with lib; {
description = "Simple SQLite database browser built with wxWidgets";
mainProgram = "wxSQLitePlus";
homepage = "https://github.com/guanlisheng/wxsqliteplus";
license = licenses.gpl3Plus;
maintainers = [ ];
platforms = platforms.unix;
};
}