nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gtk4, 6 json-glib, 7 libadwaita, 8 libgee, 9 desktop-file-utils, 10 meson, 11 ninja, 12 nix-update-script, 13 pkg-config, 14 vala, 15 wrapGAppsHook4, 16 fetchpatch, 17}: 18 19stdenv.mkDerivation (finalAttrs: { 20 pname = "notejot"; 21 version = "3.5.1"; 22 23 src = fetchFromGitHub { 24 owner = "lainsce"; 25 repo = "notejot"; 26 rev = finalAttrs.version; 27 hash = "sha256-p5F0OITgfZyvHwndI5r5BE524+nft7A2XfR3BJZFamU="; 28 }; 29 30 nativeBuildInputs = [ 31 desktop-file-utils 32 meson 33 ninja 34 pkg-config 35 vala 36 wrapGAppsHook4 37 ]; 38 39 buildInputs = [ 40 gtk4 41 json-glib 42 libadwaita 43 libgee 44 ]; 45 46 patches = [ 47 # Fixes the compilation error with new Vala compiler. Remove in the next version. 48 (fetchpatch { 49 url = "https://github.com/musicinmybrain/notejot/commit/c6a7cfcb792de63fb51eb174f9f3d4e02f6a2ce1.patch"; 50 hash = "sha256-dexPKIpUaAu/p0K2WQpElhPNt86CS+jD0dPL5+CTl4I="; 51 }) 52 ]; 53 54 passthru.updateScript = nix-update-script { }; 55 56 meta = { 57 homepage = "https://github.com/lainsce/notejot"; 58 description = "Stupidly-simple notes app"; 59 license = lib.licenses.gpl3Plus; 60 maintainers = [ ]; 61 platforms = lib.platforms.linux; 62 mainProgram = "io.github.lainsce.Notejot"; 63 }; 64})