Set up nix develop to work with nix flakes

This commit is contained in:
heyarne 2021-06-03 11:57:14 +02:00
commit 05080e720a
3 changed files with 92 additions and 0 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "Automated deployment of my datasette instance.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShell = import ./shell.nix { inherit pkgs; };
}
);
# outputs = { self, nixpkgs, flake-utils, ... }:
# flake-utils.lib.eachDefaultSystem
# (system:
# let pkgs.legacyPackages.${system}; in
# {
# devShell = import ./shell.nix { inherit pkgs; };
# }
# );
}