diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..726d2d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +result +.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..cc30810 --- /dev/null +++ b/flake.lock @@ -0,0 +1,42 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1657114324, + "narHash": "sha256-fWuaUNXrHcz/ciHRHlcSO92dvV3EVS0GJQUSBO5JIB4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a5c867d9fe9e4380452628e8f171c26b69fa9d3d", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "utils": { + "locked": { + "lastModified": 1656928814, + "narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..47ecf0e --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ + description = "A basic Go web server setup"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, utils }: + utils.lib.eachSystem [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ] (system: + let + pkgs = nixpkgs.legacyPackages.${system}; + version = builtins.substring 0 8 self.lastModifiedDate; + in { + devShells.default = pkgs.mkShell { + buildInputs = with pkgs; [ dhall dhall-lsp-server dhall-json ]; + }; + }); +} diff --git a/types/toMD/area.dhall b/types/toMD/area.dhall index 2ca97ca..12e6366 100644 --- a/types/toMD/area.dhall +++ b/types/toMD/area.dhall @@ -39,7 +39,7 @@ in λ(area : Area.Type) → Prelude.Text.concatMapSep "\n\n" NPC.Type toMD.npc in '' - ## NPCs + #### NPCs ${showNPCs area.npcs} '' diff --git a/types/toMD/npc.dhall b/types/toMD/npc.dhall index f14f466..a660948 100644 --- a/types/toMD/npc.dhall +++ b/types/toMD/npc.dhall @@ -40,7 +40,7 @@ in λ(npc : NPC.Type) → else "" in '' - #### ${npc.name} + ##### ${npc.name} A ${toMD.species npc.species} ${npc.job}.