Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 qt6, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "notes"; 10 version = "2.3.1"; 11 12 src = fetchFromGitHub { 13 owner = "nuttyartist"; 14 repo = "notes"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-ceZ37torgnxZJybacjnNG+kNAU/I2Ki7ZZ7Tzn4pIas="; 17 fetchSubmodules = true; 18 }; 19 20 cmakeFlags = [ "-DUPDATE_CHECKER=OFF" ]; 21 22 nativeBuildInputs = [ 23 cmake 24 qt6.wrapQtAppsHook 25 ]; 26 27 buildInputs = [ 28 qt6.qtbase 29 qt6.qtdeclarative 30 ]; 31 32 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 33 mkdir $out/Applications 34 mv $out/bin/Notes.app $out/Applications 35 ''; 36 37 meta = { 38 description = "Fast and beautiful note-taking app"; 39 homepage = "https://github.com/nuttyartist/notes"; 40 mainProgram = "notes"; 41 license = lib.licenses.mpl20; 42 platforms = lib.platforms.linux ++ lib.platforms.darwin; 43 maintainers = with lib.maintainers; [ zendo ]; 44 }; 45})