nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromCodeberg,
4 qt6,
5 cmark-gfm,
6 cmake,
7 pkg-config,
8 lib,
9}:
10
11stdenv.mkDerivation {
12 pname = "phantom";
13 version = "0.0.0-unstable-2025-12-22";
14
15 src = fetchFromCodeberg {
16 owner = "ItsZariep";
17 repo = "Phantom";
18 rev = "7bba1e0a2d9b33d881fb999bb543324d14355505";
19 hash = "sha256-KjQX6Hxp4hcRJWRF/CDxZGQtzQqozGWxxHn0VpOzR0U=";
20 fetchSubmodules = true;
21 };
22
23 nativeBuildInputs = [
24 qt6.wrapQtAppsHook
25 cmake
26 pkg-config
27 ];
28
29 buildInputs = [
30 qt6.qtbase
31 qt6.qtwebengine
32 cmark-gfm
33 ];
34
35 installPhase = ''
36 runHook preInstall
37
38 mkdir -p $out/bin
39 cp phantom-qt $out/bin
40
41 runHook postInstall
42 '';
43
44 meta = with lib; {
45 description = "Markdown editor with support for multi-tab";
46 homepage = "https://codeberg.org/ItsZariep/Phantom";
47 license = licenses.gpl3Only;
48 mainProgram = "phantom";
49 platforms = platforms.all;
50 maintainers = with maintainers; [ reylak ];
51 };
52}