init: copied out of combined project
This commit is contained in:
28
flake.nix
Normal file
28
flake.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
description = "attempting sample app with oauth";
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
# add this line
|
||||
inputs.sbt-derivation.url = "github:zaninime/sbt-derivation";
|
||||
# recommended for first style of usage documented below, but not necessary
|
||||
inputs.sbt-derivation.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, sbt-derivation }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.scala-cli
|
||||
pkgs.sbt
|
||||
pkgs.scalafmt
|
||||
pkgs.nodePackages.tailwindcss
|
||||
pkgs.nodePackages.prettier
|
||||
pkgs.jdk
|
||||
pkgs.pocketbase
|
||||
];
|
||||
};
|
||||
});
|
||||
# see https://serokell.io/blog/practical-nix-flakes
|
||||
}
|
||||
Reference in New Issue
Block a user