diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-03-25 22:14:02 +0100 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-03-25 22:14:02 +0100 |
commit | 0417d0a4ba7b3ac543e15c363a6e70fb2e44ff44 (patch) | |
tree | 06ec56759bf3c7c860aa52195e0bb7cb292d7a26 /packages | |
parent | 6834546f09fa6d23d618318edc6e590a42e8a90b (diff) |
spdlog: transfer to a separate module: maintenance
Diffstat (limited to 'packages')
-rw-r--r-- | packages/komodo/komodo.scm | 15 | ||||
-rw-r--r-- | packages/komodo/spdlog.scm | 44 |
2 files changed, 45 insertions, 14 deletions
diff --git a/packages/komodo/komodo.scm b/packages/komodo/komodo.scm index df9731d..5f6570c 100644 --- a/packages/komodo/komodo.scm +++ b/packages/komodo/komodo.scm @@ -30,6 +30,7 @@ #:use-module (guix packages) #:use-module (refl-cpp) #:use-module (sortfilterproxymodel) + #:use-module (spdlog) #:use-module (strong-type) #:use-module (taskflow-2) #:use-module (wally)) @@ -374,20 +375,6 @@ (arguments libsodium-komodo-arguments) (inputs libsodium-komodo-inputs))) -(define spdlog-1.8 - (package (inherit spdlog) - (version "1.8.5") - (source (origin (uri (git-reference (url "https://github.com/gabime/spdlog") - (commit (string-append "v" - version)))) - (method git-fetch) - (file-name (git-file-name "spdlog" version)) - (sha256 (base32 - "179krvg5sad6dviqpcjwg6czzknnilqszrg1d0fgp12h6sy66vqg")))) - (arguments (list #:configure-flags '(list "-DSPDLOG_BUILD_BENCH=OFF" - "-DSPDLOG_BUILD_SHARED=OFF") - #:tests? #f)))) - ;;; ABSTRACTION LAYER 0 (define komodo-wallet-arguments diff --git a/packages/komodo/spdlog.scm b/packages/komodo/spdlog.scm new file mode 100644 index 0000000..1b1c170 --- /dev/null +++ b/packages/komodo/spdlog.scm @@ -0,0 +1,44 @@ +(define-module (spdlog) + #:use-module (gnu packages logging) + #:use-module (guix git-download) + #:use-module (guix packages)) + +;; DATA LAYER + +(define configure-flags-inherited + (list "-DSPDLOG_BUILD_BENCH=OFF" + "-DSPDLOG_BUILD_SHARED=ON")) + +(define tests? + #f) + +(define version + "1.8.5") + +;; ABSTRACTION LAYER -1 + +(define configure-flags + `',configure-flags-inherited) + +;; ABSTRACTION LAYER -0 + +(define arguments + (list #:configure-flags configure-flags + #:tests? tests?)) + +(define source + (origin (uri (git-reference (url "https://github.com/gabime/spdlog") + (commit (string-append "v" + version)))) + (method git-fetch) + (file-name (git-file-name "spdlog" version)) + (sha256 (base32 + "179krvg5sad6dviqpcjwg6czzknnilqszrg1d0fgp12h6sy66vqg")))) + +;; SURFACE LAYER + +(define-public spdlog-1.8 + (package (inherit spdlog) + (version version) + (source source) + (arguments arguments))) |