Commit graph

14 commits

Author SHA1 Message Date
Giacomo Leidi
a328f6c91f
nonguix: binary: Cleanup when an unknown binary extension is detected.
The binary-unpack phase suffered from a problem for unknown binary file
extensions, see: !336 (comment 1709385147) . This patch fixes the
incorrect behavior by effectively restoring the state of the directory
tree before the phase.

* nonguix/build/binary-build-system.scm (binary-unpack): Restore the
environment as it was before this phase.
* nongnu/packages/clojure.scm (clj-kondo)[arguments]: No longer delete
'binary-unpack phase.
* nongnu/packages/game-development.scm (libsteam)[arguments]: dito.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2024-01-04 23:19:53 +01:00
Giacomo Leidi
00e0b5f319
nonguix: binary: Automatically detect and unpack .deb files.
A new binary-unpack phase is added to the binary-build-system. When a
supported binary file is detected as the only file after the unpack
phase it is then decompressed in a specific directory.

* nonguix/build/binary-build-system.scm (deb-file?): new variable;
(unpack-deb): new variable;
(binary-unpack): new variable;
(%standard-phases): use the new phase.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-12-28 23:41:04 +01:00
Giacomo Leidi
f2970727de
nonguix: Add chromium-binary-build-system.
This build system is an extension to the binary-build-system, designed
to abstract some common boilerplate necessary for packaging Chromium
based software.

* nonguix/build-system/chromium-binary.scm: New file;
* nonguix/build/chromium-binary-build-system.scm: new file;
* nonguix/build/utils.scm (build-paths-for-input): new variable;
(build-paths-from-inputs): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-07-12 23:18:05 +02:00
Jonathan Brielmaier
62a5df4222
*.scm: Use SPDX license identifiers.
Fixes https://gitlab.com/nonguix/nonguix/-/issues/224

* *.scm: Use SPDX license identifier and remove obsolete license
statement.
2022-12-19 17:17:39 +01:00
Guillaume Le Vaillant
c90d321972
nonguix: binary-build-system: Fix use of undefined variable.
Follow up to a0079cf1bd.

* nonguix/build/binary-build-system.scm (patchelf)[make-rpath]: Use 'name'
  instead of undefined 'input-or-output'.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-06-18 13:03:42 +02:00
Jonathan Brielmaier
399b277e82
nonguix: binary-build-system: Add copyright header for Attila.
Follow up to a0079cf1bd.
2022-05-05 23:20:58 +02:00
Attila Lendvai
a0079cf1bd
nonguix: Extend patchelf-plan syntax with optional path.
Makes it possible to define entries like the following in the patchelf-plan:
("the-binary" ("glibc" ("nss" "/lib/nss")))

* nonguix/build/binary-build-system.scm (maybe-make-rpath, make-rpath):
New functions and use them.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-05-05 23:14:30 +02:00
Julien Lepiller
1f61e376ce
nonguix: Allow disabling passing $0 in make-wrapper.
* nonguix/build/utils.scm (make-wrapper): Add skip-argument-0? keyword.
2020-07-02 15:50:51 +02:00
Pierre Neidhardt
12210f2393 utils: Remove 'make-desktop-entry-file' function now that it's upstream.
* nonguix/build/utils.scm (make-desktop-entry-file): Remove function.
2020-06-22 17:43:31 +02:00
Pierre Neidhardt
39fecacaef nonguix: Use the install-plan of the copy-build-system in the binary-build-system.
* nonguix/build-system/binary.scm (lower): Adapt the default value of the
  install plan.
* nonguix/build/binary-build-system.scm (new-install): New procedure.
(old-install): Rename former `install' procedure to this.
(install): New procedure that dispatches over old-install and new-install.
2020-02-29 10:42:35 +01:00
Pierre Neidhardt
aeaa8a02f5 nonguix: Add support for libraries for an extension other than ".so".
* nonguix/build-system/binary.scm (binary-build): Don't fail when setting the
  interpreter of libraries that don't contain ".so" in their name.
2020-01-16 17:47:48 +01:00
Alex Griffin
cb9d65923e utils: Add 'concatenate-files' function.
* nonguix/build/utils.scm (concatenate-files): New function.
2020-01-08 15:22:32 -06:00
Pierre Neidhardt
a35038fb8d nonguix: Fix default values for patchelf-plan and install-plan.
* nonguix/build-system/binary.scm (binary-build): Default values are unquoted,
  so we add an extra quote.
2019-12-29 19:07:43 +01:00
Pierre Neidhardt
d622a15d08 Move the "binary" build system from the Gaming Channels to Nonguix.
* nonguix/build-system/binary.scm: New file.
* nonguix/build/binary-build-system.scm: New file.
* nonguix/build/utils.scm: New file.
* nonguix/utils.scm: New file.
2019-12-29 19:07:43 +01:00