From 24f65c10bcfc8349778d024f039528997c9e7da9 Mon Sep 17 00:00:00 2001 From: Tim Gesthuizen Date: Wed, 9 Jan 2019 17:56:21 +0100 Subject: [PATCH 2/7] gnu: Add linux-libre-module-path Add a function that evaluates to the module path where the modules for linux-libre in a specific version are stored. * gnu/packages/linux.scm (linux-libre-module-path): New function --- gnu/packages/linux.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index aa18fba10..ccad6eba0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -288,6 +288,13 @@ patch number to the version if it is missing." (string-append version ".0") version)) +(define-public (linux-libre-module-path version) + "Return the install directory for modules for linux-libre in version +VERSION." + (string-append "/lib/modules/" + (linux-libre-fill-version version) + "-gnu")) + (define* (make-linux-libre version hash supported-systems #:key ;; A function that takes an arch and a variant. -- 2.20.1