gnu: kakoune: Move reproducibility substitution to source snippet.
* gnu/packages/text-editors.scm (kakoune)[arguments]: Move substitution to ... [source]: ... here. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
		
							parent
							
								
									70852355e6
								
							
						
					
					
						commit
						95757d8999
					
				
					 1 changed files with 9 additions and 5 deletions
				
			
		| 
						 | 
					@ -98,7 +98,15 @@ based command language.")
 | 
				
			||||||
               (commit commit)))
 | 
					               (commit commit)))
 | 
				
			||||||
         (sha256
 | 
					         (sha256
 | 
				
			||||||
          (base32
 | 
					          (base32
 | 
				
			||||||
           "19qs99l8r9p1vi5pxxx9an22fvi7xx40qw3jh2cnh2mbacawvdyb"))))
 | 
					           "19qs99l8r9p1vi5pxxx9an22fvi7xx40qw3jh2cnh2mbacawvdyb"))
 | 
				
			||||||
 | 
					         (modules '((guix build utils)))
 | 
				
			||||||
 | 
					         (snippet
 | 
				
			||||||
 | 
					          ;; Kakoune uses 'gzip' to compress its manpages. Make sure
 | 
				
			||||||
 | 
					          ;; timestamps are not preserved for reproducibility.
 | 
				
			||||||
 | 
					          '(begin
 | 
				
			||||||
 | 
					             (substitute* "src/Makefile"
 | 
				
			||||||
 | 
					               (("gzip -f") "gzip -f --no-name"))
 | 
				
			||||||
 | 
					             #t))))
 | 
				
			||||||
      (build-system gnu-build-system)
 | 
					      (build-system gnu-build-system)
 | 
				
			||||||
      (arguments
 | 
					      (arguments
 | 
				
			||||||
       `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
 | 
					       `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
 | 
				
			||||||
| 
						 | 
					@ -117,10 +125,6 @@ based command language.")
 | 
				
			||||||
                 (("if \\(m_shell.empty\\(\\)\\)" line)
 | 
					                 (("if \\(m_shell.empty\\(\\)\\)" line)
 | 
				
			||||||
                  (string-append "m_shell = \"" (which "sh")
 | 
					                  (string-append "m_shell = \"" (which "sh")
 | 
				
			||||||
                                 "\";\n        " line)))
 | 
					                                 "\";\n        " line)))
 | 
				
			||||||
               ;; Kakoune uses 'gzip' to compress its manpages. Make sure
 | 
					 | 
				
			||||||
               ;; timestamps are not preserved for reproducibility.
 | 
					 | 
				
			||||||
               (substitute* "src/Makefile"
 | 
					 | 
				
			||||||
                 (("gzip -f") "gzip -f --no-name"))
 | 
					 | 
				
			||||||
               #t))
 | 
					               #t))
 | 
				
			||||||
           (delete 'configure)
 | 
					           (delete 'configure)
 | 
				
			||||||
           ;; kakoune requires us to be in the src/ directory to build
 | 
					           ;; kakoune requires us to be in the src/ directory to build
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue