help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reuse package output for new package


From: phodina
Subject: Reuse package output for new package
Date: Tue, 13 Sep 2022 04:27:57 +0000

Hi,

is there a way to create a new package by reusing the output of the original 
derivation and just add files to the new package into the new output?

The usecase is PhotoGimp [1] which is set of files which are added to an 
already built gimp package.

There standard way is to inherit the package and add these files but that will 
result in rebuilt, right?

Alternative idea is to use copy-build-system and copy the already created 
package files into the output. Then just add additional files.

However, there's also a draw back if the original package contains hardcoded 
variable. But this would be only problem if I specify something in the 
#:phases, correct?

The main idea here is to save the computing resources on packages that take 
long time and their behviour can be changed by plugins/config files etc.

Of course the simplest way to use [1] it is to unpack the content of the home 
dir but IMHO that's not the correct way how to package this program.

[1] https://github.com/Diolinux/PhotoGIMP

----
Petr

reply via email to

[Prev in Thread] Current Thread [Next in Thread]