gnu: mediasdk: Build reproducibly.
* gnu/packages/video.scm (mediasdk)[arguments]: Add #:phases. Convert to gexp while at it.
This commit is contained in:
		
							parent
							
								
									73e0c84d1f
								
							
						
					
					
						commit
						6550130108
					
				
					 1 changed files with 20 additions and 11 deletions
				
			
		| 
						 | 
					@ -352,17 +352,26 @@ efficiency.")
 | 
				
			||||||
        (base32 "18mrqringyv1drswm4m8ppw7sks6x4jzp6s0ag0h9hrpd15kn5rx"))))
 | 
					        (base32 "18mrqringyv1drswm4m8ppw7sks6x4jzp6s0ag0h9hrpd15kn5rx"))))
 | 
				
			||||||
    (build-system cmake-build-system)
 | 
					    (build-system cmake-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:configure-flags
 | 
					     (list
 | 
				
			||||||
       (list
 | 
					      #:configure-flags
 | 
				
			||||||
        "-DENABLE_X11=ON"
 | 
					      #~(list
 | 
				
			||||||
        "-DENABLE_X11_DRI3=ON"
 | 
					         "-DENABLE_X11=ON"
 | 
				
			||||||
        "-DENABLE_WAYLAND=ON"
 | 
					         "-DENABLE_X11_DRI3=ON"
 | 
				
			||||||
        "-DENABLE_TEXTLOG=ON"
 | 
					         "-DENABLE_WAYLAND=ON"
 | 
				
			||||||
        "-DENABLE_STAT=ON"
 | 
					         "-DENABLE_TEXTLOG=ON"
 | 
				
			||||||
        "-DBUILD_TESTS=ON"
 | 
					         "-DENABLE_STAT=ON"
 | 
				
			||||||
        "-DBUILD_TOOLS=ON"
 | 
					         "-DBUILD_TESTS=ON"
 | 
				
			||||||
        (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
 | 
					         "-DBUILD_TOOLS=ON"
 | 
				
			||||||
                       (assoc-ref %outputs "out") "/lib"))))
 | 
					         (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
 | 
					    (native-inputs
 | 
				
			||||||
     (list pkg-config python-wrapper))
 | 
					     (list pkg-config python-wrapper))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue