nixpkgs-suyu/pkgs/applications/graphics/drawing/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.3 KiB
Nix
Raw Normal View History

2020-02-24 14:15:27 +01:00
{ lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
2020-02-24 14:15:27 +01:00
, python3
, gtk3
, appstream-glib
, desktop-file-utils
, gobject-introspection
, wrapGAppsHook
, glib
, gdk-pixbuf
, pango
, gettext
2022-03-30 12:09:51 +02:00
, itstool
2020-02-24 14:15:27 +01:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "drawing";
2022-09-11 11:12:22 +02:00
version = "1.0.1";
2020-02-24 14:15:27 +01:00
format = "other";
2021-01-01 14:46:40 +01:00
2020-02-24 14:15:27 +01:00
src = fetchFromGitHub {
owner = "maoschanz";
repo = pname;
rev = version;
2022-09-11 11:12:22 +02:00
sha256 = "sha256-9nosriI3Kdf1M5/TYFWn1jtQTqNKhBcFh7q3E4Uoq4s=";
2020-02-24 14:15:27 +01:00
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gobject-introspection
meson
ninja
pkg-config
2020-02-24 14:15:27 +01:00
wrapGAppsHook
glib
gettext
2022-03-30 12:09:51 +02:00
itstool
2020-02-24 14:15:27 +01:00
];
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;
};
}