⭐ Moe-Counter Compatible Website Hit Counter Written in Gleam mayu.due.moe
hit-counter svg moe
at main 59 lines 1.2 kB view raw
1{ 2 description = "Moe-Counter Compatible Website Hit Counter"; 3 4 inputs = { 5 flake-utils.url = "github:numtide/flake-utils"; 6 nix-gleam.url = "github:arnarg/nix-gleam"; 7 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 8 9 gitignore = { 10 url = "github:hercules-ci/gitignore.nix"; 11 inputs.nixpkgs.follows = "nixpkgs"; 12 }; 13 }; 14 15 outputs = 16 { 17 flake-utils, 18 gitignore, 19 nix-gleam, 20 nixpkgs, 21 self, 22 ... 23 }: 24 flake-utils.lib.eachDefaultSystem ( 25 system: 26 let 27 inherit (gitignore.lib) gitignoreSource; 28 29 pkgs = import nixpkgs { 30 inherit system; 31 32 overlays = [ 33 nix-gleam.overlays.default 34 ]; 35 }; 36 in 37 { 38 packages = { 39 default = pkgs.buildGleamApplication { 40 src = gitignoreSource ./.; 41 42 rebar3Package = pkgs.rebar3WithPlugins { 43 plugins = with pkgs.beamPackages; [ pc ]; 44 }; 45 }; 46 47 mayu = self.packages.${system}.default; 48 }; 49 50 devShells.default = pkgs.mkShell { 51 buildInputs = with pkgs; [ 52 gleam 53 rebar3 54 erlang 55 ]; 56 }; 57 } 58 ); 59}