diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2022-03-03 21:44:55 -0700 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2022-03-14 11:14:48 -0600 |
commit | d23d8c0daff89d78cadd62896e779dd0645290a6 (patch) | |
tree | 2661cb4c7734172dfd4afe47e2722fd00357d571 | |
parent | 91dadfcc5a57227b89c85cacff5f1a965c5ee8cc (diff) | |
download | dotfiles-d23d8c0daff89d78cadd62896e779dd0645290a6.tar.gz dotfiles-d23d8c0daff89d78cadd62896e779dd0645290a6.tar.xz |
config: add gnuplot configuration
Create simple gnuplot-colorbrewer package to load into gnuplot config.
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
-rw-r--r-- | homes/daeva.scm | 2 | ||||
-rw-r--r-- | kbg/packages/gnuplot.scm | 34 | ||||
-rw-r--r-- | kbg/services/config/gnuplot.scm | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/homes/daeva.scm b/homes/daeva.scm index 0bff9f12..612b922d 100644 --- a/homes/daeva.scm +++ b/homes/daeva.scm @@ -19,6 +19,7 @@ #:use-module (kbg packages emacs) #:use-module (kbg services config git) #:use-module (kbg services config global) + #:use-module (kbg services config gnuplot) #:use-module (kbg services config kitty) #:use-module (kbg services config ledger) #:use-module (kbg services config nixpkgs) @@ -42,6 +43,7 @@ git-config-service ;; global-config-service emacs-service + gnuplot-config-service home-vars-service kitty-config-service ledger-config-service diff --git a/kbg/packages/gnuplot.scm b/kbg/packages/gnuplot.scm new file mode 100644 index 00000000..c19cae0c --- /dev/null +++ b/kbg/packages/gnuplot.scm @@ -0,0 +1,34 @@ +(define-module (kbg packages gnuplot) + #:use-module (gnu) + #:use-module (guix) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build utils) + #:use-module (guix build-system) + #:use-module (guix build-system copy) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:export (gnuplot-colorbrewer)) + +(define gnuplot-colorbrewer + (let ((baseurl "https://github.com/aschn/gnuplot-colorbrewer/archive/refs/tags/") + (version "1.0")) + (package + (name "gnuplot-colorbrewer") + (version version) + (source (origin + (method url-fetch) + (uri (string-append baseurl version ".tar.gz")) + (file-name (string-append "gnuplot-colorbrewer-" version ".tar.gz")) + (sha256 + (base32 + "0rynzrvsp55v1hwrkzjysjzznwghac8xgawg48py5zrx52c6yh2g")))) + (build-system copy-build-system) + (arguments + '(#:install-plan '(("diverging/" "diverging") + ("sequential/" "sequential") + ("qualitative/" "qualitative")))) + (synopsis "ColorBrewer color schemes for gnuplot") + (description "ColorBrewer color schemes usable by gnuplot") + (home-page "https://github.com/aschn/gnuplot-colorbrewer") + (license license:asl2.0)))) diff --git a/kbg/services/config/gnuplot.scm b/kbg/services/config/gnuplot.scm new file mode 100644 index 00000000..8e1760c7 --- /dev/null +++ b/kbg/services/config/gnuplot.scm @@ -0,0 +1,18 @@ +(define-module (kbg services config gnuplot) + #:use-module (kbg) + #:use-module (gnu) + #:use-module (guix) + #:use-module (guix gexp) + #:use-module (kbg packages gnuplot) + #:use-module (gnu home services)) + +(define (gnuplot-config-text) + (mixed-text-file "gnuplot" + "set loadpath '" gnuplot-colorbrewer "/diverging/' " + "'" gnuplot-colorbrewer "/qualitative/' " + "'" gnuplot-colorbrewer "/sequential/'")) + +(define-public gnuplot-config-service + (list (simple-service 'gnuplot-config + home-files-service-type + `(("gnuplot" ,(gnuplot-config-text)))))) |