This commit is contained in:
waalge 2023-06-24 15:36:49 +00:00
commit 8321b95157
2 changed files with 33 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

32
flake.nix Normal file
View File

@ -0,0 +1,32 @@
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devshell.url = "github:numtide/devshell";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
];
systems = [ "x86_64-linux" "aarch64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devshells.default = {
env = [{
name = "HTTP_PORT";
value = 8080;
}];
commands = [{
help = "print hello";
name = "hello";
command = "echo hello";
}];
packages = with pkgs; [ pandoc nixfmt ];
};
};
flake = {
};
};
}