nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 81 lines 1.6 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 meson, 5 ninja, 6 pkg-config, 7 python3, 8 gtk3, 9 appstream-glib, 10 desktop-file-utils, 11 gobject-introspection, 12 wrapGAppsHook3, 13 glib, 14 gdk-pixbuf, 15 pango, 16 gettext, 17 itstool, 18}: 19 20python3.pkgs.buildPythonApplication rec { 21 pname = "drawing"; 22 version = "1.0.2"; 23 24 pyproject = false; 25 26 src = fetchFromGitHub { 27 owner = "maoschanz"; 28 repo = "drawing"; 29 tag = version; 30 hash = "sha256-kNF9db8NoHWW1A0WEFQzxHqAQ4A7kxInMRZFJOXQX/k="; 31 }; 32 33 nativeBuildInputs = [ 34 appstream-glib 35 desktop-file-utils 36 gobject-introspection 37 meson 38 ninja 39 pkg-config 40 wrapGAppsHook3 41 glib 42 gettext 43 itstool 44 ]; 45 46 buildInputs = [ 47 glib 48 gtk3 49 gdk-pixbuf 50 pango 51 ]; 52 53 propagatedBuildInputs = with python3.pkgs; [ 54 pycairo 55 pygobject3 56 ]; 57 58 postPatch = '' 59 chmod +x build-aux/meson/postinstall.py # patchShebangs requires executable file 60 patchShebangs build-aux/meson/postinstall.py 61 ''; 62 63 # Prevent double wrapping because of wrapGAppsHook3 64 dontWrapGApps = true; 65 66 preFixup = '' 67 makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 68 ''; 69 70 strictDeps = false; 71 72 meta = { 73 description = "Free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop"; 74 mainProgram = "drawing"; 75 homepage = "https://maoschanz.github.io/drawing/"; 76 changelog = "https://github.com/maoschanz/drawing/releases/tag/${version}"; 77 maintainers = with lib.maintainers; [ mothsart ]; 78 license = lib.licenses.gpl3Plus; 79 platforms = lib.platforms.linux; 80 }; 81}