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

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

74 lines
1.4 KiB
Nix
Raw Normal View History

2020-02-24 13:15:27 +00:00
{ lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
2020-02-24 13:15:27 +00:00
, python3
, gtk3
, appstream-glib
, desktop-file-utils
, gobject-introspection
, wrapGAppsHook3
2020-02-24 13:15:27 +00:00
, glib
, gdk-pixbuf
, pango
, gettext
2022-03-30 10:09:51 +00:00
, itstool
2020-02-24 13:15:27 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "drawing";
version = "1.0.2";
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;
2023-03-26 10:01:40 +00:00
rev = "refs/tags/${version}";
hash = "sha256-kNF9db8NoHWW1A0WEFQzxHqAQ4A7kxInMRZFJOXQX/k=";
2020-02-24 13:15:27 +00:00
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gobject-introspection
meson
ninja
pkg-config
wrapGAppsHook3
2020-02-24 13:15:27 +00:00
glib
gettext
2022-03-30 10:09:51 +00:00
itstool
2020-02-24 13:15:27 +00: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 = "Free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop";
mainProgram = "drawing";
2020-02-24 13:15:27 +00:00
homepage = "https://maoschanz.github.io/drawing/";
2023-03-26 10:01:40 +00:00
changelog = "https://github.com/maoschanz/drawing/releases/tag/${version}";
2020-02-24 13:15:27 +00:00
maintainers = with maintainers; [ mothsart ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}