From e43498b32dcbbf055d72339086213cd60c336acf Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Sat, 19 Aug 2023 20:36:50 +0200 Subject: [PATCH] gnu: shared-mime-info: Make .drv reproducible again. This fixes an issue in commit 0a167432dbccb3ed5b6f27a48b61e570846cf784, that causes the .drv of shared-mime-info to change with each invocation of guix. For more information, refer to and . * gnu/packages/freedesktop.scm (shared-mime-info)[#:configure-flags]: Infer xdgmime-path via search-input-file. --- gnu/packages/freedesktop.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 8cb4c61d9f..85ba5ba147 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -534,8 +534,10 @@ display servers. It supports many different languages and emoji.") (arguments (list #:configure-flags - #~(list #$(format #f "-Dxdgmime-path=~a/bin" - (this-package-native-input "xdgmime")) + #~(list (string-append + "-Dxdgmime-path=" + (dirname + (search-input-file %build-inputs "/bin/test-mime"))) "-Dupdate-mimedb=true") #:phases #~(modify-phases %standard-phases