Files
nixpkgs/pkgs/by-name/wx/wxsqliteplus/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.2 KiB
Nix

{
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;
};
}