Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
BostX committed Oct 29, 2023
1 parent 83347c9 commit 50626e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions notes/guix-guile-nix/guix_package.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,18 @@
;; (derivation-builder-environment-vars srr-drv)
[("out","/gnu/store/rsqn0wagdp3w9wqcj1amz2pyw97zbqqy-spacemacs-rolling-release-0.999.0-0.e3c1450")])
}

@block{@block-name{Analyzing package structure / record}
(use-modules
;; specification->package
(gnu packages)
;; package? package-name etc
(guix packages))
;;
(define p (specification->package "emacs"))
(record? p)
(define rtd (record-type-descriptor p))
(record-accessor rtd 'name)
(package? p)
(package-name p)
}

0 comments on commit 50626e2

Please sign in to comment.