Good default for nix flakes.

This commit is contained in:
didier amyot committed 2023-04-19 07:37:29 -04:00
commit 6395856c51
3 files changed
+84

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
{
description = "Good basic flake template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = {
default = pkgs.hello;
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [deno];
};
}
);
}