gnome: gnome-desktop: Add bubblewrap as an input.
This is expected to be available, oddly as libseccomp is available. These changes fix thumbnails for Nautilus. * gnu/packages/gnome.scm (gnome-desktop)[arguments]: Add 'patch-bubblewrap phase. [inputs]: Add bubblewrap.
This commit is contained in:
		
							parent
							
								
									e51175f686
								
							
						
					
					
						commit
						3857aba7ab
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -1286,6 +1286,19 @@ offline sources, providing a centralized place for managing your contacts.")
 | 
				
			||||||
                 (("\"locale\"")
 | 
					                 (("\"locale\"")
 | 
				
			||||||
                  (string-append "\"" libc "/bin/locale\"")))
 | 
					                  (string-append "\"" libc "/bin/locale\"")))
 | 
				
			||||||
               #t)))
 | 
					               #t)))
 | 
				
			||||||
 | 
					         (add-before 'configure 'patch-bubblewrap
 | 
				
			||||||
 | 
					           (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
 | 
					             (substitute* "libgnome-desktop/gnome-desktop-thumbnail-script.c"
 | 
				
			||||||
 | 
					               (("\"bwrap\",")
 | 
				
			||||||
 | 
					                (string-append "\"" (which "bwrap") "\","))
 | 
				
			||||||
 | 
					               (("\"--ro-bind\", \"/usr\", \"/usr\",")
 | 
				
			||||||
 | 
					                (string-append "\"--ro-bind\", \""
 | 
				
			||||||
 | 
					                               (%store-directory)
 | 
				
			||||||
 | 
					                               "\", \""
 | 
				
			||||||
 | 
					                               (%store-directory)
 | 
				
			||||||
 | 
					                               "\","))
 | 
				
			||||||
 | 
					               (("\"--ro-bind\", \"/etc/ld.so.cache\", \"/etc/ld.so.cache\",") ""))
 | 
				
			||||||
 | 
					             #t))
 | 
				
			||||||
         (add-before 'check 'pre-check
 | 
					         (add-before 'check 'pre-check
 | 
				
			||||||
           (lambda* (#:key inputs #:allow-other-keys)
 | 
					           (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
             ;; Tests require a running X server and locales.
 | 
					             ;; Tests require a running X server and locales.
 | 
				
			||||||
| 
						 | 
					@ -1315,6 +1328,7 @@ offline sources, providing a centralized place for managing your contacts.")
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("gdk-pixbuf" ,gdk-pixbuf)
 | 
					     `(("gdk-pixbuf" ,gdk-pixbuf)
 | 
				
			||||||
       ("glib" ,glib)
 | 
					       ("glib" ,glib)
 | 
				
			||||||
 | 
					       ("bubblewrap" ,bubblewrap)
 | 
				
			||||||
       ("libxext" ,libxext)
 | 
					       ("libxext" ,libxext)
 | 
				
			||||||
       ("libxkbfile" ,libxkbfile)
 | 
					       ("libxkbfile" ,libxkbfile)
 | 
				
			||||||
       ("libxrandr" ,libxrandr)))
 | 
					       ("libxrandr" ,libxrandr)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue