diff options
author | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2024-09-29 10:05:32 -0400 |
---|---|---|
committer | Christopher R. Nelson <christopher.nelson@languidnights.com> | 2024-09-29 10:05:32 -0400 |
commit | c5da15d396a5ecc36a0729c22be6b6402d0b7b1b (patch) | |
tree | fc3ebc0e98b287df10d6e0201385e8cdccbaca6d | |
parent | 964aaf7c9a4c507b0930c06ffe0c2681fd193514 (diff) |
add patchelf package
-rw-r--r-- | README.rst | 1 | ||||
-rw-r--r-- | crn/packages/elf.scm | 32 |
2 files changed, 33 insertions, 0 deletions
@@ -8,6 +8,7 @@ packaged in the official repos. Included ======== +* patchelf-0.16.1 (needed for go apps) * cpplint-up: an updated version of cpplint. just the official package, with a later version * black-box: Guess where the crystals are! diff --git a/crn/packages/elf.scm b/crn/packages/elf.scm new file mode 100644 index 0000000..3e224a6 --- /dev/null +++ b/crn/packages/elf.scm @@ -0,0 +1,32 @@ +(define-module (crn packages elf) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (guix packages) + #:use-module (gnu packages elf)) + +;; https://issues.guix.gnu.org/73541 by Hilton Chain +;; Newer patchelf may break binaries. e.g. When setting RUNPATH for a Go +;; program. +;; See also: https://github.com/NixOS/patchelf/issues/482 +(define-public patchelf-0.16 + (package + (inherit patchelf) + (name "patchelf") + (version "0.16.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/NixOS/patchelf/releases/download/" + version + "/patchelf-" version ".tar.bz2")) + (sha256 + (base32 + "0zdby3gpmm8q4735pviaq92zj41i2rdnhwhyrsb3sinc9hzmz4db")))) + (arguments + (substitute-keyword-arguments (package-arguments patchelf) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'fix-tests 'skip-empty-rpath-test + (lambda _ + (substitute* "tests/set-empty-rpath.sh" + (("^\\$\\{SCRATCH\\}\\/simple.$") "")))))))))) |