nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 format = "other";
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 strictDeps = false;
64
65 meta = {
66 description = "Free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop";
67 mainProgram = "drawing";
68 homepage = "https://maoschanz.github.io/drawing/";
69 changelog = "https://github.com/maoschanz/drawing/releases/tag/${version}";
70 maintainers = with lib.maintainers; [ mothsart ];
71 license = lib.licenses.gpl3Plus;
72 platforms = lib.platforms.linux;
73 };
74}