Initial commit
This commit is contained in:
7
flake.lock
generated
Normal file
7
flake.lock
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"root": {}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
9
flake.nix
Normal file
9
flake.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
description = "Development Environment for JMU's CS345";
|
||||||
|
|
||||||
|
outputs = _: {
|
||||||
|
nixosModules = {
|
||||||
|
bernstdh = import ./modules;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
48
modules/default.nix
Normal file
48
modules/default.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (pkgs.eclipses) eclipse-java eclipseWithPlugins plugins;
|
||||||
|
|
||||||
|
# Eclipse IDE for Java Developers 2024-06 R Package
|
||||||
|
eclipse-v2024-06 = eclipse-java.overrideAttrs (oldAttrs: rec {
|
||||||
|
version = "2024-06";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/${version}/R/eclipse-java-${version}-R-linux-gtk-x86_64.tar.gz";
|
||||||
|
sha256 = "1dgqbpsk6a6y3w58fkp4h5w804gcmvril6j97nkxvj96yb8f6xvx";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
# The Eclipse plugin for Checkstyle v10.17.
|
||||||
|
checkstyle-v10-17 = plugins.buildEclipseUpdateSite {
|
||||||
|
name = "checkstyle-v10.17";
|
||||||
|
src = ../plugins/checkstyle-v10.17;
|
||||||
|
};
|
||||||
|
|
||||||
|
# A custom derivation of Eclipse with CS345's requirements.
|
||||||
|
eclipse-cs345 = eclipseWithPlugins {
|
||||||
|
eclipse = eclipse-v2024-06;
|
||||||
|
plugins = [
|
||||||
|
checkstyle-v10-17
|
||||||
|
plugins.color-theme
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.programs.nix-jmu-cs345 = {
|
||||||
|
enable = mkEnableOption "nix-jmu-cs345";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.programs.nix-jmu-cs345.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
jdk21_headless
|
||||||
|
eclipse-cs345
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
plugins/checkstyle-v10.17/plugins/org.yaml.snakeyaml_2.3.0.jar
Normal file
BIN
plugins/checkstyle-v10.17/plugins/org.yaml.snakeyaml_2.3.0.jar
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user