From 1e9e6dbdd6edbfd8ac6249ba0d16e68b336cf093 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Tue, 3 Sep 2024 19:34:56 -0500 Subject: Added different outpaths to separate KoboRoot, png and other files --- pkgs/koreader/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pkgs/koreader') diff --git a/pkgs/koreader/default.nix b/pkgs/koreader/default.nix index fb81d71..3f185b7 100644 --- a/pkgs/koreader/default.nix +++ b/pkgs/koreader/default.nix @@ -9,6 +9,12 @@ stdenvNoCC.mkDerivation (finalAttrs: { hash = "sha256-9Ga42XSCC5FUQmlAygPhhXlFs0TIdxAf3/sWBmZ5URU="; }; + outputs = [ + "out" + "KoboRoot" + "png" + ]; + phases = "installPhase"; installPhase = '' @@ -16,6 +22,10 @@ stdenvNoCC.mkDerivation (finalAttrs: { cp -ra $src/koreader $out + mkdir $KoboRoot + + cp $src/koreader.png $png + runHook postInstall ''; @@ -23,5 +33,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { homepage = "https://github.com/koreader/koreader"; platform = platforms.all; license = licenses.agpl3Plus; + outputsToInstall = finalAttrs.outputs; }; }) -- cgit v1.2.3