summary refs log tree commit diff
path: root/gnu/packages/disk.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-01-07 23:51:59 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2022-01-07 02:41:16 +0100
commitf17f3e59f8bcabe97fa6d314e6fd26dc4b2c5a7d (patch)
treec61d5a622cbaa3cc82e3aebfe6cbe3c07d5a3c89 /gnu/packages/disk.scm
parentf1dcd661f8dd1e7f1745b44240b19b31d9b89083 (diff)
downloadguix-f17f3e59f8bcabe97fa6d314e6fd26dc4b2c5a7d.tar.gz
gnu: ndctl: Fix version reporting.
* gnu/packages/disk.scm (ndctl)[arguments]: Add a 'fix-version phase.
Diffstat (limited to 'gnu/packages/disk.scm')
-rw-r--r--gnu/packages/disk.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index ac8b561e79..9c25d940eb 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -833,6 +833,11 @@ passphrases.")
                  (lambda _
                    (substitute* "util/parse-configs.c"
                      (("iniparser/") ""))))
+               (add-after 'unpack 'fix-version
+                 ;; Our VERSION's always better than the build's poor guess.
+                 (lambda _
+                   (with-output-to-file "version"
+                     (lambda _ (display #$version)))))
                (add-after 'unpack 'patch-FHS-file-names
                  (lambda _
                    (substitute* "git-version-gen"