nixos-config/modules/dev/perl.nix
Gabriel Arazas d01e597918 Restructured the project setup
I've also added a little module for version control systems now that I'm finding myself often packaging software.
2020-09-06 04:50:16 +08:00

25 lines
456 B
Nix
Executable File

# The language for portable shell scripting.
{ config, options, lib, pkgs, ... }:
with lib;
let
perlWithPackages = pkgs.perl.withPackages (p: with pkgs.perlPackages;
[
ModernBuild
ModuleInfo
ModuleInstall
ModernPerl
]);
in {
options.modules.dev.perl = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.dev.perl.enable {
my.packages = perlWithPackages;
};
}