diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7af1612 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1692799911, + "narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1693250523, + "narHash": "sha256-y3up5gXMTbnCsXrNEB5j+7TVantDLUYyQLu/ueiXuyg=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "3efb0f6f404ec8dae31bdb1a9b17705ce0d6986e", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1e915c3 --- /dev/null +++ b/flake.nix @@ -0,0 +1,40 @@ +{ + description = "Kucinako - Wordbook of Arzhanai languages"; + + 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}; + node-modules = pkgs.mkYarnPackage { + name = "node-modules"; + src = ./.; + }; + frontend = pkgs.stdenv.mkDerivation { + name = "frontend"; + src = ./.; + buildInputs = [pkgs.yarn node-modules pkgs.exa pkgs.lmdb]; + buildPhase = '' + ln -s ${node-modules}/libexec/kucinako/node_modules node_modules + ${pkgs.yarn}/bin/yarn build + ''; + installPhase = '' + mkdir $out + mv dist $out/dist + ''; + + }; + in + { + packages = { + node-modules = node-modules; + default = frontend; + }; + } + ); +} + diff --git a/package.json b/package.json index 159aef4..f36ea2e 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,6 @@ "scripts": { "start": "parcel index.html", "build": "parcel build index.html --no-source-maps --detailed-report", - "prebuild": "yarn run typecheck", - "typecheck": "tsc --noEmit --jsx preserve", "lint": "eslint --ext .ts,.tsx,.js .", "lint-fix": "eslint --ext .ts,.tsx,.js . --fix" }, diff --git a/src/App.tsx b/src/App.tsx index cc37d75..497788b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -174,7 +174,7 @@ const App = (_props) => {

Kucinako - Wordbook of Arzhanai languages

-

Kucinako is a dictionary of words in various languages of the world Arzhanø, and their English +

Kucinako (Saimiar "word-book") is a dictionary of words in various languages of the world Arzhanø, and their English equivalents.

{