glimpse: Drop package and plugins

authored by Jonas Heinrich and committed by Kerstin 63d72966 5b39c6be

-268
-200
pkgs/applications/graphics/glimpse/default.nix
··· 1 - { stdenv 2 - , lib 3 - , fetchFromGitHub 4 - , substituteAll 5 - , pkg-config 6 - , intltool 7 - , babl 8 - , gegl 9 - , gtk2 10 - , glib 11 - , gdk-pixbuf 12 - , isocodes 13 - , pango 14 - , cairo 15 - , freetype 16 - , fontconfig 17 - , lcms 18 - , libpng 19 - , libjpeg 20 - , poppler 21 - , poppler_data 22 - , libtiff 23 - , libmng 24 - , librsvg 25 - , libwmf 26 - , zlib 27 - , libzip 28 - , ghostscript 29 - , aalib 30 - , shared-mime-info 31 - , python2 32 - , libexif 33 - , gettext 34 - , xorg 35 - , glib-networking 36 - , libmypaint 37 - , gexiv2 38 - , harfbuzz 39 - , mypaint-brushes1 40 - , libwebp 41 - , libheif 42 - , libgudev 43 - , openexr 44 - , AppKit 45 - , Cocoa 46 - , gtk-mac-integration-gtk2 47 - , libxslt 48 - , automake 49 - , autoconf 50 - , libtool 51 - , makeWrapper 52 - , autoreconfHook 53 - , gtk-doc 54 - , graphviz 55 - }: 56 - let 57 - python = python2.withPackages (pp: [ pp.pygtk ]); 58 - in 59 - stdenv.mkDerivation rec { 60 - pname = "glimpse"; 61 - version = "0.2.0"; 62 - 63 - outputs = [ "out" "dev" ]; 64 - 65 - src = fetchFromGitHub { 66 - owner = "glimpse-editor"; 67 - repo = "Glimpse"; 68 - rev = "v${version}"; 69 - sha256 = "sha256-qbZQmAo7fuJWWbn0QTyxAwAenZOdsGueUq5/3IV8Njc="; 70 - }; 71 - 72 - patches = [ 73 - # to remove compiler from the runtime closure, reference was retained via 74 - # gimp --version --verbose output 75 - (substituteAll { 76 - src = ./remove-cc-reference.patch; 77 - cc_version = stdenv.cc.cc.name; 78 - }) 79 - ../gimp/hardcode-plugin-interpreters.patch 80 - ]; 81 - 82 - postPatch = '' 83 - ln -s ${gtk-doc}/share/gtk-doc/data/gtk-doc.make . 84 - ''; 85 - 86 - nativeBuildInputs = [ 87 - autoreconfHook 88 - pkg-config 89 - intltool 90 - gettext 91 - automake 92 - autoconf 93 - makeWrapper 94 - gtk-doc 95 - libxslt 96 - libtool 97 - ]; 98 - 99 - buildInputs = [ 100 - babl 101 - gegl 102 - gtk2 103 - glib 104 - gdk-pixbuf 105 - pango 106 - cairo 107 - gexiv2 108 - harfbuzz 109 - isocodes 110 - freetype 111 - fontconfig 112 - lcms 113 - libpng 114 - libjpeg 115 - poppler 116 - poppler_data 117 - libtiff 118 - openexr 119 - libmng 120 - librsvg 121 - libwmf 122 - zlib 123 - libzip 124 - ghostscript 125 - aalib 126 - shared-mime-info 127 - libwebp 128 - libheif 129 - python 130 - libexif 131 - xorg.libXpm 132 - glib-networking 133 - libmypaint 134 - mypaint-brushes1 135 - ] ++ lib.optionals stdenv.isDarwin [ 136 - AppKit 137 - Cocoa 138 - gtk-mac-integration-gtk2 139 - ] ++ lib.optionals stdenv.isLinux [ 140 - libgudev 141 - ]; 142 - 143 - # needed by gimp-2.0.pc 144 - propagatedBuildInputs = [ 145 - gegl 146 - ]; 147 - 148 - # Check if librsvg was built with --disable-pixbuf-loader. 149 - PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${librsvg}/${gdk-pixbuf.moduleDir}"; 150 - 151 - preAutoreconf = '' 152 - # The check runs before glib-networking is registered 153 - export GIO_EXTRA_MODULES="${glib-networking}/lib/gio/modules:$GIO_EXTRA_MODULES" 154 - ''; 155 - 156 - postFixup = '' 157 - wrapProgram $out/bin/glimpse-${lib.versions.majorMinor version} \ 158 - --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ 159 - --prefix PATH ":" ${ lib.makeBinPath [ graphviz ] } 160 - ''; 161 - 162 - passthru = rec { 163 - # The declarations for `glimpse-with-plugins` wrapper, 164 - # used for determining plug-in installation paths 165 - majorVersion = "2.0"; 166 - targetPluginDir = "lib/glimpse/${majorVersion}/plug-ins"; 167 - targetScriptDir = "share/glimpse/${majorVersion}/scripts"; 168 - targetDataDir = "share/gimp/${majorVersion}"; 169 - targetLibDir = "lib/gimp/${majorVersion}"; 170 - 171 - # probably its a good idea to use the same gtk in plugins ? 172 - gtk = gtk2; 173 - }; 174 - 175 - configureFlags = [ 176 - "--without-webkit" # old version is required 177 - "--with-bug-report-url=https://github.com/NixOS/nixpkgs/issues/new" 178 - "--with-icc-directory=/run/current-system/sw/share/color/icc" 179 - # fix libdir in pc files (${exec_prefix} needs to be passed verbatim) 180 - "--libdir=\${exec_prefix}/lib" 181 - ]; 182 - 183 - # on Darwin, 184 - # test-eevl.c:64:36: error: initializer element is not a compile-time constant 185 - doCheck = !stdenv.isDarwin; 186 - 187 - enableParallelBuilding = true; 188 - 189 - meta = with lib; { 190 - description = "An open source image editor based on the GNU Image Manipulation Program"; 191 - longDescription = '' 192 - Glimpse is an open source image editor based on the GNU Image Manipulation Program (GIMP). The goal is to experiment with new ideas and expand the use of free software. 193 - ''; 194 - homepage = "https://glimpse-editor.org"; 195 - maintainers = with maintainers; [ ashkitten erictapen ]; 196 - license = licenses.gpl3Plus; 197 - platforms = platforms.unix; 198 - mainProgram = "glimpse"; 199 - }; 200 - }
-11
pkgs/applications/graphics/glimpse/plugins/default.nix
··· 1 - # Use `glimpse-with-plugins` package for Glimpse with all plug-ins. 2 - # If you just want a subset of plug-ins, you can specify them explicitly: 3 - # `glimpse-with-plugins.override { plugins = with glimpsePlugins; [ gap ]; }`. 4 - 5 - { gimpPlugins, glimpse }: 6 - 7 - # This attrs can be extended in the future if there happen to be glimpse-only 8 - # plugins or some that need further modification in order to work with Glimpse. 9 - gimpPlugins.overrideScope' (self: super: { 10 - gimp = glimpse; 11 - })
-13
pkgs/applications/graphics/glimpse/remove-cc-reference.patch
··· 1 - diff --git a/app/gimp-version.c b/app/gimp-version.c 2 - index b584398231..1b40a1570f 100644 3 - --- a/app/gimp-version.c 4 - +++ b/app/gimp-version.c 5 - @@ -230,7 +230,7 @@ gimp_version (gboolean be_verbose, 6 - GIMP_BUILD_ID, 7 - gimp_version_get_revision (), 8 - GIMP_BUILD_PLATFORM_FAMILY, 9 - - CC_VERSION, 10 - + "@cc_version@", 11 - lib_versions); 12 - g_free (lib_versions); 13 -
-32
pkgs/applications/graphics/glimpse/wrapper.nix
··· 1 - { lib, symlinkJoin, glimpse, makeWrapper, glimpsePlugins, gnome, plugins ? null }: 2 - 3 - let 4 - allPlugins = lib.filter (pkg: lib.isDerivation pkg && !pkg.meta.broken or false) (lib.attrValues glimpsePlugins); 5 - selectedPlugins = if plugins == null then allPlugins else plugins; 6 - extraArgs = map (x: x.wrapArgs or "") selectedPlugins; 7 - versionBranch = lib.versions.majorMinor glimpse.version; 8 - 9 - in 10 - symlinkJoin { 11 - name = "glimpse-with-plugins-${glimpse.version}"; 12 - 13 - paths = [ glimpse ] ++ selectedPlugins; 14 - 15 - nativeBuildInputs = [ makeWrapper ]; 16 - 17 - postBuild = '' 18 - for each in glimpse-${versionBranch} glimpse-console-${versionBranch}; do 19 - wrapProgram $out/bin/$each \ 20 - --set GIMP2_PLUGINDIR "$out/lib/glimpse/2.0" \ 21 - --set GIMP2_DATADIR "$out/share/glimpse/2.0" \ 22 - --prefix GTK_PATH : "${gnome.gnome-themes-extra}/lib/gtk-2.0" \ 23 - ${toString extraArgs} 24 - done 25 - 26 - for each in glimpse glimpse-console; do 27 - ln -sf "$each-${versionBranch}" $out/bin/$each 28 - done 29 - ''; 30 - 31 - inherit (glimpse) meta; 32 - }
-12
pkgs/top-level/all-packages.nix
··· 27122 27122 27123 27123 gimpPlugins = recurseIntoAttrs (callPackage ../applications/graphics/gimp/plugins {}); 27124 27124 27125 - glimpse = callPackage ../applications/graphics/glimpse { 27126 - autoreconfHook = buildPackages.autoreconfHook269; 27127 - lcms = lcms2; 27128 - inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; 27129 - }; 27130 - 27131 - glimpse-with-plugins = callPackage ../applications/graphics/glimpse/wrapper.nix { 27132 - plugins = null; # All packaged plugins enabled, if not explicit plugin list supplied 27133 - }; 27134 - 27135 - glimpsePlugins = recurseIntoAttrs (callPackage ../applications/graphics/glimpse/plugins {}); 27136 - 27137 27125 girara = callPackage ../applications/misc/girara { 27138 27126 gtk = gtk3; 27139 27127 };