nixos-config/modules/dev/data.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2020-09-07 10:36:02 +00:00
# A bunch of data-related tools and libraries.
{ config, options, lib, pkgs, ... }:
with lib;
2020-11-05 06:39:02 +00:00
let
cfg = config.modules.dev.data;
in {
2020-09-07 10:36:02 +00:00
options.modules.dev.data = {
enable = mkOption {
type = types.bool;
default = false;
};
dhall.enable = mkOption {
type = types.bool;
default = false;
};
2020-09-07 10:36:02 +00:00
};
config = mkIf cfg.enable {
2020-09-07 10:36:02 +00:00
my.packages = with pkgs; [
2020-10-25 15:49:14 +00:00
cfitsio # A data library for FITS images which is an image used for analyzing your fitness level.
hdf5 # A binary data format with hierarchy and metadata.
#hdfview # HDF4 and HDF5 viewer.
jq # A JSON parser on the command-line (with the horrible syntax, in my opinion).
pup # A cute little puppy that can understand HTML.
sqlite # A cute little battle-tested library for your data abominations.
2020-10-20 15:56:10 +00:00
sqlitebrowser # Skim the DB and create a quick scraping script for it.
2020-11-10 08:20:03 +00:00
yq # A YAML parser on the command-line.
] ++
(if cfg.dhall.enable then [
dhall # A dull programmable configuration Turing-incomplete language for your guaranteed termination, neat.
dhall-nix
dhall-bash
dhall-json
dhall-text
dhall-lsp-server
] else []);
2020-09-07 10:36:02 +00:00
};
}