Add a module for data-related tools

This commit is contained in:
Gabriel Arazas 2020-09-07 18:36:02 +08:00
parent d01e597918
commit 4aa4f638e1
6 changed files with 36 additions and 5 deletions

View File

@ -9,6 +9,9 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Clean up the /tmp directory.
boot.cleanTmpDir = true;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
@ -80,6 +83,8 @@
dev = {
android.enable = true;
base.enable = true;
cc.enable = true;
data.enable = true;
documentation = {
enable = true;
latex.enable = true;
@ -166,6 +171,7 @@
# fds-nur.brl-cad
# fds-nur.hypermail
# fds-nur.wikiman
nur.foo-dogsquared.segno
];
# Setting up the shell environment.

View File

@ -17,6 +17,7 @@ with lib;
cookiecutter # A project scaffolding tool.
gnumake # Make your life easier with GNU Make.
hyperfine # You shouldn't be feel just fine with your programs...
nixfmt # Formatter for uniform Nix code.
stow # Build your symlink farm on the other side of the country, er, filesystem.
tldr # What manuals should include.
universal-ctags # Enable fast traveling to your code (assuming written in a supported language).

23
modules/dev/data.nix Normal file
View File

@ -0,0 +1,23 @@
# A bunch of data-related tools and libraries.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.dev.data = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.dev.data.enable {
my.packages = with pkgs; [
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.
];
};
}

View File

@ -5,6 +5,7 @@
./android.nix
./base.nix
./cc.nix
./data.nix
./documentation.nix
./gamedev.nix
./java.nix

View File

@ -23,10 +23,11 @@ in
my.packages = with pkgs;
(if cfg.clojure.enable then [
clojure # Improved Java version.
leiningen # Install Clojure projects without pulling your hair.
] else []) ++
(if cfg.guile.enable then [
guile # A general-purpose language for stuff, named after a certain American pop culture icon.
guile # A general-purpose language for stuff, named after a certain pop culture icon from an iconic fighting game.
] else []) ++
(if cfg.racket.enable then [

View File

@ -1,12 +1,11 @@
[
(self: super: with super; {
nur-foo-dogsquared = import (
fetchTarball "https://github.com/foo-dogsquared/nix-expressions/archive/master.tar.gz") { };
);
);
# Add packages from the unstable channel with `pkgs.unstable.$PKG`.
unstable = import <nixpkgs-unstable> { inherit config; };
nur.foo-dogsquared = import (
fetchTarball "https://github.com/foo-dogsquared/nur-packages/archive/develop.tar.gz"
) { inherit pkgs; };
})
# The unstable branch of Emacs.