ipe: migrate to by-name

ipe: refactor package definitions

ghostscript: migrate to by-name

+32 -31
+16 -16
pkgs/applications/graphics/ipe/default.nix pkgs/by-name/ip/ipe/package.nix
··· 7 copyDesktopItems, 8 cairo, 9 freetype, 10 - ghostscript, 11 gsl, 12 libjpeg, 13 libpng, 14 libspiro, 15 lua5, 16 - qtbase, 17 - qtsvg, 18 texliveSmall, 19 qhull, 20 - wrapQtAppsHook, 21 zlib, 22 withTeXLive ? true, 23 withQVoronoi ? false, 24 buildPackages, 25 }: 26 27 - stdenv.mkDerivation rec { 28 pname = "ipe"; 29 version = "7.2.30"; 30 31 src = fetchFromGitHub { 32 owner = "otfried"; 33 repo = "ipe"; 34 - tag = "v${version}"; 35 hash = "sha256-bvwEgEP/cinigixJr8e964sm6secSK+7Ul7WFfwM0gE="; 36 }; 37 38 nativeBuildInputs = [ 39 pkg-config 40 copyDesktopItems 41 - wrapQtAppsHook 42 ]; 43 44 buildInputs = [ 45 cairo 46 freetype 47 - ghostscript 48 gsl 49 libjpeg 50 libpng 51 libspiro 52 lua5 53 qtbase 54 qtsvg 55 zlib 56 - ] 57 ++ (lib.optionals withTeXLive [ 58 texliveSmall 59 ]) ··· 79 80 desktopItems = [ 81 (makeDesktopItem { 82 - name = pname; 83 desktopName = "Ipe"; 84 genericName = "Drawing editor"; 85 comment = "A drawing editor for creating figures in PDF format"; ··· 100 101 postInstall = '' 102 mkdir -p $out/share/icons/hicolor/128x128/apps 103 - ln -s $out/share/ipe/${version}/icons/icon_128x128.png $out/share/icons/hicolor/128x128/apps/ipe.png 104 ''; 105 106 - meta = with lib; { 107 description = "Editor for drawing figures"; 108 homepage = "http://ipe.otfried.org"; # https not available 109 - license = licenses.gpl3Plus; 110 longDescription = '' 111 Ipe is an extensible drawing editor for creating figures in PDF and Postscript format. 112 It supports making small figures for inclusion into LaTeX-documents 113 as well as presentations in PDF. 114 ''; 115 - maintainers = with maintainers; [ ttuegel ]; 116 - platforms = platforms.linux; 117 }; 118 - }
··· 7 copyDesktopItems, 8 cairo, 9 freetype, 10 + ghostscriptX, 11 gsl, 12 libjpeg, 13 libpng, 14 libspiro, 15 lua5, 16 + qt6Packages, 17 texliveSmall, 18 qhull, 19 zlib, 20 withTeXLive ? true, 21 withQVoronoi ? false, 22 buildPackages, 23 }: 24 25 + stdenv.mkDerivation (finalAttrs: { 26 pname = "ipe"; 27 version = "7.2.30"; 28 29 src = fetchFromGitHub { 30 owner = "otfried"; 31 repo = "ipe"; 32 + tag = "v${finalAttrs.version}"; 33 hash = "sha256-bvwEgEP/cinigixJr8e964sm6secSK+7Ul7WFfwM0gE="; 34 }; 35 36 nativeBuildInputs = [ 37 pkg-config 38 copyDesktopItems 39 + qt6Packages.wrapQtAppsHook 40 ]; 41 42 buildInputs = [ 43 cairo 44 freetype 45 + ghostscriptX 46 gsl 47 libjpeg 48 libpng 49 libspiro 50 lua5 51 + ] 52 + ++ (with qt6Packages; [ 53 qtbase 54 qtsvg 55 zlib 56 + ]) 57 ++ (lib.optionals withTeXLive [ 58 texliveSmall 59 ]) ··· 79 80 desktopItems = [ 81 (makeDesktopItem { 82 + name = "ipe"; 83 desktopName = "Ipe"; 84 genericName = "Drawing editor"; 85 comment = "A drawing editor for creating figures in PDF format"; ··· 100 101 postInstall = '' 102 mkdir -p $out/share/icons/hicolor/128x128/apps 103 + ln -s $out/share/ipe/${finalAttrs.version}/icons/icon_128x128.png $out/share/icons/hicolor/128x128/apps/ipe.png 104 ''; 105 106 + meta = { 107 description = "Editor for drawing figures"; 108 homepage = "http://ipe.otfried.org"; # https not available 109 + license = lib.licenses.gpl3Plus; 110 longDescription = '' 111 Ipe is an extensible drawing editor for creating figures in PDF and Postscript format. 112 It supports making small figures for inclusion into LaTeX-documents 113 as well as presentations in PDF. 114 ''; 115 + maintainers = with lib.maintainers; [ ttuegel ]; 116 + platforms = lib.platforms.linux; 117 }; 118 + })
+8
pkgs/by-name/gh/ghostscriptX/package.nix
···
··· 1 + { 2 + ghostscript, 3 + }: 4 + 5 + ghostscript.override { 6 + cupsSupport = true; 7 + x11Support = true; 8 + }
+8
pkgs/by-name/gh/ghostscript_headless/package.nix
···
··· 1 + { 2 + ghostscript, 3 + }: 4 + 5 + ghostscript.override { 6 + cupsSupport = false; 7 + x11Support = false; 8 + }
-15
pkgs/top-level/all-packages.nix
··· 12513 lua = lua5_1; 12514 }; 12515 12516 - ipe = qt6Packages.callPackage ../applications/graphics/ipe { 12517 - ghostscript = ghostscriptX; 12518 - lua5 = lua5_3; 12519 - }; 12520 - 12521 ir.lv2 = callPackage ../applications/audio/ir.lv2 { }; 12522 12523 jabcode = callPackage ../development/libraries/jabcode { }; ··· 15562 gajim = callPackage ../applications/networking/instant-messengers/gajim { 15563 inherit (gst_all_1) gstreamer gst-plugins-base gst-libav; 15564 gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; }; 15565 - }; 15566 - 15567 - ghostscriptX = ghostscript.override { 15568 - cupsSupport = true; 15569 - x11Support = true; 15570 - }; 15571 - 15572 - ghostscript_headless = ghostscript.override { 15573 - cupsSupport = false; 15574 - x11Support = false; 15575 }; 15576 15577 gnuk = callPackage ../misc/gnuk {
··· 12513 lua = lua5_1; 12514 }; 12515 12516 ir.lv2 = callPackage ../applications/audio/ir.lv2 { }; 12517 12518 jabcode = callPackage ../development/libraries/jabcode { }; ··· 15557 gajim = callPackage ../applications/networking/instant-messengers/gajim { 15558 inherit (gst_all_1) gstreamer gst-plugins-base gst-libav; 15559 gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; }; 15560 }; 15561 15562 gnuk = callPackage ../misc/gnuk {