Ah yeah add it as an entry point haha

This commit is contained in:
Lillian Violet 2024-01-18 14:48:41 +01:00
parent b0217e58ff
commit 709ae72897

View file

@ -3,14 +3,14 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: outputs = {
let self,
nixpkgs,
}: let
overlays = [ overlays = [
(final: prev: (final: prev: let
let
exec = pkg: "${prev.${pkg}}/bin/${pkg}"; exec = pkg: "${prev.${pkg}}/bin/${pkg}";
in in {
{
format = prev.writeScriptBin "format" '' format = prev.writeScriptBin "format" ''
${exec "nixpkgs-fmt"} **/*.nix ${exec "nixpkgs-fmt"} **/*.nix
''; '';
@ -40,7 +40,9 @@
}) })
]; ];
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { forEachSupportedSystem = f:
nixpkgs.lib.genAttrs supportedSystems (system:
f {
pkgs = import nixpkgs {inherit overlays system;}; pkgs = import nixpkgs {inherit overlays system;};
}); });
in in
@ -56,10 +58,7 @@
inherit (pkgs) dvt; inherit (pkgs) dvt;
}); });
} }
// {
//
{
templates = rec { templates = rec {
clojure = { clojure = {
path = ./clojure; path = ./clojure;
@ -116,6 +115,11 @@
description = "Java development environment"; description = "Java development environment";
}; };
jupyter = {
path = ./jupyter;
description = "Jupyter development environment";
};
kotlin = { kotlin = {
path = ./kotlin; path = ./kotlin;
description = "Kotlin development environment"; description = "Kotlin development environment";