Ah yeah add it as an entry point haha
This commit is contained in:
parent
b0217e58ff
commit
709ae72897
26
flake.nix
26
flake.nix
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue