mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
d01e597918
I've also added a little module for version control systems now that I'm finding myself often packaging software.
25 lines
456 B
Nix
Executable File
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;
|
|
};
|
|
}
|