nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.1 kB view raw
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 tag = "v${finalAttrs.version}"; 16 hash = "sha256-ceZ37torgnxZJybacjnNG+kNAU/I2Ki7ZZ7Tzn4pIas="; 17 fetchSubmodules = true; 18 }; 19 20 patches = [ 21 # Based on https://github.com/nuttyartist/notes/pull/758 which doesn't apply cleanly 22 ./qt610-fix.patch 23 ]; 24 25 cmakeFlags = [ "-DUPDATE_CHECKER=OFF" ]; 26 27 nativeBuildInputs = [ 28 cmake 29 qt6.wrapQtAppsHook 30 ]; 31 32 buildInputs = [ 33 qt6.qtbase 34 qt6.qtdeclarative 35 ]; 36 37 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 38 mkdir $out/Applications 39 mv $out/bin/Notes.app $out/Applications 40 ''; 41 42 meta = { 43 description = "Fast and beautiful note-taking app"; 44 homepage = "https://github.com/nuttyartist/notes"; 45 mainProgram = "notes"; 46 license = lib.licenses.mpl20; 47 platforms = lib.platforms.linux ++ lib.platforms.darwin; 48 maintainers = with lib.maintainers; [ zendo ]; 49 }; 50})