Ah yeah add it as an entry point haha
This commit is contained in:
parent
b0217e58ff
commit
709ae72897
36
flake.nix
36
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
|
||||
'';
|
||||
|
@ -39,27 +39,26 @@
|
|||
'';
|
||||
})
|
||||
];
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit overlays system; };
|
||||
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||
forEachSupportedSystem = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||
f {
|
||||
pkgs = import nixpkgs {inherit overlays system;};
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
devShells = forEachSupportedSystem ({pkgs}: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [ format update ];
|
||||
packages = with pkgs; [format update];
|
||||
};
|
||||
});
|
||||
|
||||
packages = forEachSupportedSystem ({ pkgs }: rec {
|
||||
packages = forEachSupportedSystem ({pkgs}: rec {
|
||||
default = dvt;
|
||||
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