Set up nix develop to work with nix flakes
This commit is contained in:
parent
5894e6262a
commit
05080e720a
3 changed files with 92 additions and 0 deletions
25
flake.nix
Normal file
25
flake.nix
Normal 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; };
|
||||
# }
|
||||
# );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue