From 20384a7f4e360e2f5ae36c4e71fa05aaaa84ff21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 8 Nov 2025 23:25:27 +0100 Subject: [PATCH] timeshift: add man output --- pkgs/applications/backup/timeshift/unwrapped.nix | 4 ++++ pkgs/applications/backup/timeshift/wrapper.nix | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/backup/timeshift/unwrapped.nix b/pkgs/applications/backup/timeshift/unwrapped.nix index 258b49c22225..95980f5c5fd3 100644 --- a/pkgs/applications/backup/timeshift/unwrapped.nix +++ b/pkgs/applications/backup/timeshift/unwrapped.nix @@ -19,6 +19,10 @@ stdenv.mkDerivation (finalAttrs: { pname = "timeshift"; version = "25.07.7"; + outputs = [ + "out" + "man" + ]; src = fetchFromGitHub { owner = "linuxmint"; diff --git a/pkgs/applications/backup/timeshift/wrapper.nix b/pkgs/applications/backup/timeshift/wrapper.nix index fcef826ebd34..11e27546334b 100644 --- a/pkgs/applications/backup/timeshift/wrapper.nix +++ b/pkgs/applications/backup/timeshift/wrapper.nix @@ -10,7 +10,7 @@ timeshift-unwrapped: runtimeDeps: stdenvNoCC.mkDerivation { - inherit (timeshift-unwrapped) pname version; + inherit (timeshift-unwrapped) pname version outputs; dontUnpack = true; @@ -21,8 +21,12 @@ stdenvNoCC.mkDerivation { installPhase = '' runHook preInstall - mkdir -p "$out" - lndir "${timeshift-unwrapped}" "$out" + '' + + lib.concatMapStrings (outputName: '' + mkdir -p "''$${outputName}" + lndir -silent "${timeshift-unwrapped.${outputName}}" "''$${outputName}" + '') timeshift-unwrapped.outputs + + '' runHook postInstall '';