Skip to content

Commit

Permalink
gimp-devel default.nix, NixOS/nixpkgs#67576
Browse files Browse the repository at this point in the history
  • Loading branch information
ghagl committed Jan 1, 2024
1 parent 98b90f9 commit d7b47ef
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions gimp-devel/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{ stdenv, lib, aalib, alsa-lib, appstream, appstream-glib, babl, bashInteractive
, cairo, desktop-file-utils, fetchurl, findutils, gdk-pixbuf, gegl, gexiv2
, ghostscript, gi-docgen, gjs, glib, glib-networking, gobject-introspection
, gtk3, isocodes, lcms, libarchive, libgudev, libheif, libjxl, libmng
, libmypaint, librsvg, libwebp, libwmf, libxslt, lua, luajit, meson
, mypaint-brushes1, ninja, openexr, perl538, pkg-config, poppler, poppler_data
, python, python3, shared-mime-info, vala, wrapGAppsHook, xorg, xvfb-run

}:
let
python = python3.withPackages (pp: [ pp.pygobject3 ]);
lua = luajit.withPackages (ps: [ ps.lgi ]);
in stdenv.mkDerivation (finalAttrs: {
pname = "gimp";
version = "2.99.16";

outputs = [ "out" "dev" ];

src = fetchurl {
url = "http://download.gimp.org/pub/gimp/v${
lib.versions.majorMinor finalAttrs.version
}/gimp-${finalAttrs.version}.tar.xz";
hash = "sha256-a0SW7e5Eczn5IydnVSR+rbZOxA2K7CQdBrYtGm62UI0=";
};

patches = [ ./meson-gtls.patch ./pygimp-interp.patch ];

nativeBuildInputs = [
pkg-config
libxslt
ghostscript
libarchive
bashInteractive
libheif
libwebp
libmng
aalib
libjxl
isocodes
perl538
appstream
meson
xvfb-run
gi-docgen
findutils
vala
alsa-lib
ninja
wrapGAppsHook
];

buildInputs = [
gjs
lua
babl
appstream-glib
gegl
gtk3
glib
gdk-pixbuf
cairo
gexiv2
lcms
libjxl
poppler
poppler_data
openexr
libmng
librsvg
desktop-file-utils
libwmf
ghostscript
aalib
shared-mime-info
libwebp
libheif
xorg.libXpm
xorg.libXmu
glib-networking
libmypaint
mypaint-brushes1
gobject-introspection
python
libgudev
];

preConfigure =
"patchShebangs tools/gimp-mkenums app/tests/create_test_env.sh plug-ins/script-fu/scripts/ts-helloworld.scm";

enableParallelBuilding = true;

doCheck = false;

meta = with lib; {
description = "The GNU Image Manipulation Program: Development Edition";
homepage = "https://www.gimp.org/";
maintainers = with maintainers; [ "9p4" ];
license = licenses.gpl3Plus;
platforms = platforms.unix;
mainProgram = "gimp";
};
})

0 comments on commit d7b47ef

Please sign in to comment.