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 '';