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";
|
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";
|
||||||
|
|
Loading…
Reference in a new issue