~ruther/debugging-channel

ref: 15b39ab78ddb39bc14cb0bdf39c6c6d1550cc71f debugging-channel/debugging.scm -rwxr-xr-x 789 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
29
30
31
32
33
(use-modules
 (debugging-module)
 (guix store)
 (guix gexp)
 (guix derivations))

(display "Source location: ")
(display debugging-module-source-props-location)
(display "\n")
(display "Filename: ")
(display debugging-module-filename)
(display "\n")

(display "\n")

(display "The local file's absolute location: ")
(display (local-file-absolute-file-name debugging-hello-world))
(display "\n")

(define drv (with-store store
           (run-with-store store
             (gexp->derivation "my-source" #~(symlink #$debugging-hello-world #$output)))))

(display "Hello world drv: ")

(unless (with-store store (build-derivations store (list drv)))
  (display "Error! Couldn't build!"))

(display drv)
(display "\n")
(display "Path: ")
(display (derivation->output-path drv))
(display "\n")