diff options
author | Marius Bakke <marius@gnu.org> | 2022-08-11 18:34:25 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-08-11 21:58:02 +0200 |
commit | 65501301080d44bc7a207273707aaf77e475573d (patch) | |
tree | 18c443e610c8471eb7db5abc36c3893fef1ff5f3 /gnu/packages | |
parent | 73e0c84d1f99e5b68244f8fcf73ad27ab24bb8a1 (diff) | |
download | guix-65501301080d44bc7a207273707aaf77e475573d.tar.gz |
gnu: mediasdk: Build reproducibly.
* gnu/packages/video.scm (mediasdk)[arguments]: Add #:phases. Convert to gexp while at it.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/video.scm | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index a44c986b46..6d0b5ccb58 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -352,17 +352,26 @@ efficiency.") (base32 "18mrqringyv1drswm4m8ppw7sks6x4jzp6s0ag0h9hrpd15kn5rx")))) (build-system cmake-build-system) (arguments - `(#:configure-flags - (list - "-DENABLE_X11=ON" - "-DENABLE_X11_DRI3=ON" - "-DENABLE_WAYLAND=ON" - "-DENABLE_TEXTLOG=ON" - "-DENABLE_STAT=ON" - "-DBUILD_TESTS=ON" - "-DBUILD_TOOLS=ON" - (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" - (assoc-ref %outputs "out") "/lib")))) + (list + #:configure-flags + #~(list + "-DENABLE_X11=ON" + "-DENABLE_X11_DRI3=ON" + "-DENABLE_WAYLAND=ON" + "-DENABLE_TEXTLOG=ON" + "-DENABLE_STAT=ON" + "-DBUILD_TESTS=ON" + "-DBUILD_TOOLS=ON" + (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" + #$output "/lib")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'do-not-embed-kernel-version + (lambda _ + (substitute* "builder/FindGlobals.cmake" + (("set\\([[:blank:]]+?BUILD_INFO \"\\$\\{CMAKE_SYSTEM\\}\ + \\$\\{CMAKE_SYSTEM_VERSION\\}") + "set( BUILD_INFO \"Linux"))))))) (native-inputs (list pkg-config python-wrapper)) (inputs |