Skip to content

Instantly share code, notes, and snippets.

@samth samth/add-catalog.rkt Secret
Last active Feb 7, 2016

What would you like to do?
#lang racket
(require pkg pkg/lib)
(define new-catalog "")
(define current-config
(λ (e) (not (equal? e "")))
(regexp-split "\n" (with-output-to-string
(λ () (pkg-config-command #:installation #t "catalogs"))))))
(parameterize ([current-pkg-scope 'installation])
(pkg-config #t (cons "catalogs"
(cons new-catalog current-config)))))
(pkg-config-command "catalogs" #:installation #t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.