~ruther/debugging-channel

ref: 15b39ab78ddb39bc14cb0bdf39c6c6d1550cc71f debugging-channel/.guix/modules/debugging-module.scm -rw-r--r-- 777 bytes
15b39ab7 — Rutherther Update 2 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(define-module (debugging-module)
  #:use-module (guix gexp)
  #:use-module (guix utils))

(define-public debugging-module-location
  (current-source-directory))

(define-public debugging-module-source-props-location
  (source-properties->location
   (current-source-location)))

(define-public debugging-module-filename
  (current-filename))

(define-public debugging-hello-world
  (local-file "../../hello-world"))

(define-public two-folders-back
  (if debugging-module-location
      (canonicalize-path
       (string-append debugging-module-location "/../../"))
      "unknown"))

(define-public two-folders-back-from-filename
  (if debugging-module-filename
      (canonicalize-path
       (string-append (dirname debugging-module-filename) "/../../"))
      "unknown"))