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";
outputs = { self, nixpkgs }:
let
outputs = {
self,
nixpkgs,
}: let
overlays = [
(final: prev:
let
(final: prev: let
exec = pkg: "${prev.${pkg}}/bin/${pkg}";
in
{
in {
format = prev.writeScriptBin "format" ''
${exec "nixpkgs-fmt"} **/*.nix
'';
@ -40,7 +40,9 @@
})
];
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;};
});
in
@ -56,10 +58,7 @@
inherit (pkgs) dvt;
});
}
//
{
// {
templates = rec {
clojure = {
path = ./clojure;
@ -116,6 +115,11 @@
description = "Java development environment";
};
jupyter = {
path = ./jupyter;
description = "Jupyter development environment";
};
kotlin = {
path = ./kotlin;
description = "Kotlin development environment";