2020-02-24 13:15:27 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-02-24 13:15:27 +00:00
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pango
|
|
|
|
, gettext
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "drawing";
|
2020-03-29 14:13:04 +00:00
|
|
|
version = "0.4.13";
|
2020-02-24 13:15:27 +00:00
|
|
|
|
|
|
|
format = "other";
|
2021-01-01 13:46:40 +00:00
|
|
|
|
2020-02-24 13:15:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maoschanz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-03-29 14:13:04 +00:00
|
|
|
sha256 = "0mj2nmfrckv89srgkn16fnbrb35f5a655ak8bb3rd9na3hd5bq53";
|
2020-02-24 13:15:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-02-24 13:15:27 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
glib
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/postinstall.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop";
|
|
|
|
homepage = "https://maoschanz.github.io/drawing/";
|
|
|
|
maintainers = with maintainers; [ mothsart ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|