all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: phodina via <help-guix@gnu.org>
To: help-guix <help-guix@gnu.org>
Subject: Reuse package output for new package
Date: Tue, 13 Sep 2022 04:27:57 +0000	[thread overview]
Message-ID: <mbC9ENU0zZNm23imdkx9uMPsKxXQx3A00B4rXg3WmnfO9WEQXAnexNm2pojdCQNTWVV6H3_ht5vKrIx5qquZ5BsZ2w1U8xdl7r5IwbXHsvc=@protonmail.com> (raw)

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	other threads:[~2022-09-13  4:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13  4:27 phodina via [this message]
2022-10-11 19:17 ` Reuse package output for new package jbranso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='mbC9ENU0zZNm23imdkx9uMPsKxXQx3A00B4rXg3WmnfO9WEQXAnexNm2pojdCQNTWVV6H3_ht5vKrIx5qquZ5BsZ2w1U8xdl7r5IwbXHsvc=@protonmail.com' \
    --to=help-guix@gnu.org \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.