20 stdenv.mkDerivation (finalAttrs: {
24 src = fetchFromGitHub {
25 owner = "tomboy-notes";
27 rev = "v${finalAttrs.version}";
28 hash = "sha256-QRv0LVZpRxW9c/cCcDsMSAYQ3zuYa39VJbcys5N+1x0=";
30 kcontrols = fetchFromGitHub {
31 owner = "davidbannon";
33 rev = "4b74f50599544aa05d76385c21795ca9026e9657";
34 hash = "sha256-AHpcbt5v9Y/YG9MZ/zCLLH1Pfryv0zH8UFCgY/RqrdQ=";
55 patches = [ ./simplify-build-script.patch ];
57 postPatch = "ln -s ${finalAttrs.kcontrols} kcontrols";
59 makeFlags = [ "PREFIX=${placeholder "out"}" ];
61 passthru.updateScript = nix-update-script {
62 # Stable releases only
70 COMPILER = lib.getExe' fpc "fpc";
71 LAZ_DIR = "${lazarus}/share/lazarus";
75 description = "Note taking app that works and synchronises between Linux, Windows and macOS";
76 homepage = "https://github.com/tomboy-notes/tomboy-ng";
77 license = with lib.licenses; [ mit ];
78 maintainers = with lib.maintainers; [ pluiedev ];
79 mainProgram = "tomboy-ng";
80 platforms = lib.platforms.unix ++ lib.platforms.windows;