Slide 40
Slide 40 text
Bonus:
f
lakes
• Uses lock
f
ile to specify hash of Nixpkgs and other repositories
• Less boilerplate for pinning
• Still experimental, e
ff
orts to further simplify
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils,
. ..
}: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default =
pkgs.mkShell { buildInputs = [ pkgs.sbt pkgs.coursier pkgs.nodejs ]; };
}
);
}