Unverified Commit 3f11be80 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

inkscape: add man output

parent cb435e16
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ in
stdenv.mkDerivation (finalAttrs: {
  pname = "inkscape";
  version = "1.4.2";
  outputs = [
    "out"
    "man"
  ];

  src = fetchurl {
    url = "https://inkscape.org/release/inkscape-${finalAttrs.version}/source/archive/xz/dl/inkscape-${finalAttrs.version}.tar.xz";
+7 −0
Original line number Diff line number Diff line
@@ -17,6 +17,11 @@ in
symlinkJoin {
  name = "inkscape-with-extensions-${lib.getVersion inkscape}";

  outputs = [
    "out"
    "man"
  ];

  paths = [ inkscape ] ++ selectedExtensions;

  nativeBuildInputs = [ makeWrapper ];
@@ -24,6 +29,8 @@ symlinkJoin {
  postBuild = ''
    rm -f $out/bin/inkscape
    makeWrapper "${inkscape}/bin/inkscape" "$out/bin/inkscape" --set INKSCAPE_DATADIR "$out/share"

    ln -s ${inkscape.man} $man
  '';

  inherit (inkscape) meta;