11 stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
13 stdenv'.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
18 owner = "nuttyartist";
20 rev = "v${finalAttrs.version}";
21 hash = "sha256-Z89Z7Il9K9pOxvNfFCoRUkRs0Wf5a6TQACDbBrQhGyw=";
22 fetchSubmodules = true;
25 cmakeFlags = [ "-DUPDATE_CHECKER=OFF" ];
37 ++ lib.optionals stdenv.hostPlatform.isDarwin [
38 darwin.apple_sdk_11_0.frameworks.Cocoa
41 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
42 mkdir $out/Applications
43 mv $out/bin/Notes.app $out/Applications
47 description = "Fast and beautiful note-taking app";
48 homepage = "https://github.com/nuttyartist/notes";
49 mainProgram = "notes";
50 license = lib.licenses.mpl20;
51 platforms = lib.platforms.linux ++ lib.platforms.darwin;
52 maintainers = with lib.maintainers; [ zendo ];