Skip to content

Commit

Permalink
Switch to a Nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Mar 4, 2024
1 parent 24582b4 commit 1ab3c9b
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use nix
use flake
156 changes: 156 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
description = "Provision a dev environment";

inputs = {
typelevel-nix.url = "github:typelevel/typelevel-nix";
nixpkgs.follows = "typelevel-nix/nixpkgs";
flake-utils.follows = "typelevel-nix/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, typelevel-nix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ typelevel-nix.overlay ];
};

mkShell = jdk: pkgs.devshell.mkShell {
imports = [ typelevel-nix.typelevelShell ];
name = "blaze";
typelevelShell = {
jdk.package = jdk;
nodejs.enable = false;
native.enable = false;
};
};
in
rec {
devShell = mkShell pkgs.jdk8;
}
);
}
11 changes: 0 additions & 11 deletions shell.nix

This file was deleted.

0 comments on commit 1ab3c9b

Please sign in to comment.