2022-06-23 02:57:41 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
let
|
|
|
|
devel = config.nathan.programs.devel;
|
|
|
|
unstable = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}";
|
2022-10-13 22:13:43 -04:00
|
|
|
inherit (import ../../../modules/lib.nix {
|
|
|
|
inherit lib;
|
|
|
|
inherit pkgs;
|
|
|
|
})
|
|
|
|
nLib;
|
2022-06-23 02:57:41 -04:00
|
|
|
|
2022-10-13 22:13:43 -04:00
|
|
|
in with lib;
|
|
|
|
with nLib; {
|
2022-07-02 02:44:43 -04:00
|
|
|
config = mkMerge [
|
2022-06-23 02:57:41 -04:00
|
|
|
# Core development utilites
|
|
|
|
(mkIf devel.core {
|
|
|
|
home.packages = with pkgs;
|
2022-10-13 22:13:43 -04:00
|
|
|
# General packages
|
2022-09-04 03:33:35 -04:00
|
|
|
[
|
|
|
|
# Git addons
|
|
|
|
git-secret
|
|
|
|
delta
|
|
|
|
# General development requirements
|
|
|
|
cmake
|
|
|
|
libtool
|
|
|
|
gnumake
|
|
|
|
nixpkgs-fmt
|
|
|
|
# sops for secrets management
|
|
|
|
sops
|
|
|
|
];
|
2022-06-23 02:57:41 -04:00
|
|
|
|
|
|
|
programs = {
|
2022-10-13 22:13:43 -04:00
|
|
|
direnv = { enable = true; };
|
2022-06-23 02:57:41 -04:00
|
|
|
# Neovim
|
|
|
|
# (I'm not abonding emacs I just want the tutor)
|
2022-10-13 22:13:43 -04:00
|
|
|
neovim = { enable = true; };
|
2022-06-23 02:57:41 -04:00
|
|
|
};
|
|
|
|
})
|
|
|
|
# Rust development
|
2022-07-02 02:44:43 -04:00
|
|
|
(mkIf devel.rust {
|
2022-06-23 02:57:41 -04:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# Rustup for having the compiler around
|
|
|
|
rustup
|
|
|
|
# Install the latest rust analyzer
|
|
|
|
inputs.fenix.packages."${pkgs.system}".rust-analyzer
|
|
|
|
# Misc cargo utilites
|
|
|
|
cargo-binutils # Allow invoking the llvm tools included with the toolchain
|
|
|
|
cargo-edit # Command line Cargo.toml manipulation
|
|
|
|
cargo-asm # Dump the generated assembly
|
|
|
|
cargo-fuzz # front end for fuzz testing rust
|
|
|
|
cargo-license # Audit the licenses of dependencies
|
|
|
|
cargo-criterion # Benchmarking front end
|
|
|
|
cargo-audit # Check dependencies for known CVEs
|
|
|
|
cargo-bloat # Find out what's taking up space in the executable
|
|
|
|
cargo-udeps # Find unused dependencies
|
|
|
|
cargo-expand # Dump expanded macros
|
|
|
|
cargo-play # Quickly execute code outside of a crate
|
|
|
|
# For building stuff that uses protocol buffers
|
|
|
|
protobuf
|
2022-07-06 01:14:56 -04:00
|
|
|
# For faster builds
|
|
|
|
sccache
|
2022-06-23 02:57:41 -04:00
|
|
|
];
|
|
|
|
})
|
|
|
|
# Python Development
|
2022-07-02 02:44:43 -04:00
|
|
|
(mkIf devel.python {
|
2022-10-13 22:13:43 -04:00
|
|
|
home.packages = with pkgs; [ python3Full nodePackages.pyright ];
|
2022-06-23 02:57:41 -04:00
|
|
|
})
|
|
|
|
# JavaScript/TypeScript Development
|
2022-07-02 02:44:43 -04:00
|
|
|
(mkIf devel.js {
|
2022-10-13 22:13:43 -04:00
|
|
|
home.packages = with pkgs; [ nodejs yarn nodePackages.typescript deno ];
|
2022-06-23 02:57:41 -04:00
|
|
|
})
|
|
|
|
# Raku Development
|
2022-10-13 22:13:43 -04:00
|
|
|
(mkIf devel.raku { home.packages = with pkgs; [ rakudo zef ]; })
|
2022-07-02 02:44:43 -04:00
|
|
|
];
|
2022-06-23 02:57:41 -04:00
|
|
|
}
|