timeshift: add man output (#460510)

This commit is contained in:
Sandro
2025-11-12 17:21:59 +00:00
committed by GitHub
2 changed files with 11 additions and 3 deletions

View File

@@ -19,6 +19,10 @@
stdenv.mkDerivation (finalAttrs: {
pname = "timeshift";
version = "25.07.7";
outputs = [
"out"
"man"
];
src = fetchFromGitHub {
owner = "linuxmint";

View File

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