⭐ Moe-Counter Compatible Website Hit Counter Written in Gleam mayu.due.moe
hit-counter svg moe

build(nix): nix environment

fuwn.net 0448cbc0 365ea889

verified
+136
+3
.gitignore
··· 10 10 # SQLite 11 11 *.sqlite3 12 12 *.db 13 + 14 + # Nix 15 + result
+98
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-utils": { 4 + "inputs": { 5 + "systems": "systems" 6 + }, 7 + "locked": { 8 + "lastModified": 1710146030, 9 + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", 10 + "owner": "numtide", 11 + "repo": "flake-utils", 12 + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "numtide", 17 + "repo": "flake-utils", 18 + "type": "github" 19 + } 20 + }, 21 + "gitignore": { 22 + "inputs": { 23 + "nixpkgs": [ 24 + "nixpkgs" 25 + ] 26 + }, 27 + "locked": { 28 + "lastModified": 1709087332, 29 + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", 30 + "owner": "hercules-ci", 31 + "repo": "gitignore.nix", 32 + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", 33 + "type": "github" 34 + }, 35 + "original": { 36 + "owner": "hercules-ci", 37 + "repo": "gitignore.nix", 38 + "type": "github" 39 + } 40 + }, 41 + "nix-gleam": { 42 + "locked": { 43 + "lastModified": 1717670865, 44 + "narHash": "sha256-+dAPiKAwCzlKWtx3aIHXfR6jydh1JyangewqZKJx500=", 45 + "owner": "arnarg", 46 + "repo": "nix-gleam", 47 + "rev": "c69abe0e57a01991654d3de63dcd93a8b91b98ff", 48 + "type": "github" 49 + }, 50 + "original": { 51 + "owner": "arnarg", 52 + "repo": "nix-gleam", 53 + "type": "github" 54 + } 55 + }, 56 + "nixpkgs": { 57 + "locked": { 58 + "lastModified": 1718318537, 59 + "narHash": "sha256-4Zu0RYRcAY/VWuu6awwq4opuiD//ahpc2aFHg2CWqFY=", 60 + "owner": "NixOS", 61 + "repo": "nixpkgs", 62 + "rev": "e9ee548d90ff586a6471b4ae80ae9cfcbceb3420", 63 + "type": "github" 64 + }, 65 + "original": { 66 + "owner": "NixOS", 67 + "ref": "nixos-unstable", 68 + "repo": "nixpkgs", 69 + "type": "github" 70 + } 71 + }, 72 + "root": { 73 + "inputs": { 74 + "flake-utils": "flake-utils", 75 + "gitignore": "gitignore", 76 + "nix-gleam": "nix-gleam", 77 + "nixpkgs": "nixpkgs" 78 + } 79 + }, 80 + "systems": { 81 + "locked": { 82 + "lastModified": 1681028828, 83 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 84 + "owner": "nix-systems", 85 + "repo": "default", 86 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 87 + "type": "github" 88 + }, 89 + "original": { 90 + "owner": "nix-systems", 91 + "repo": "default", 92 + "type": "github" 93 + } 94 + } 95 + }, 96 + "root": "root", 97 + "version": 7 98 + }
+35
flake.nix
··· 1 + { 2 + description = "Moe-Counter Compatible Website Hit Counter"; 3 + inputs = { 4 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 5 + flake-utils.url = "github:numtide/flake-utils"; 6 + nix-gleam.url = "github:arnarg/nix-gleam"; 7 + gitignore = { 8 + url = "github:hercules-ci/gitignore.nix"; 9 + inputs.nixpkgs.follows = "nixpkgs"; 10 + }; 11 + }; 12 + outputs = { self, nixpkgs, flake-utils, nix-gleam, gitignore, ... }: 13 + flake-utils.lib.eachDefaultSystem (system: 14 + let 15 + pkgs = import nixpkgs { 16 + inherit system; 17 + overlays = [ 18 + nix-gleam.overlays.default 19 + ]; 20 + }; 21 + inherit (gitignore.lib) gitignoreSource; 22 + in 23 + { 24 + packages.default = pkgs.buildGleamApplication { 25 + src = gitignoreSource ./.; 26 + rebar3Package = pkgs.rebar3WithPlugins { 27 + plugins = with pkgs.beamPackages; [ pc ]; 28 + }; 29 + }; 30 + devShell = pkgs.mkShell { 31 + buildInputs = [ pkgs.gleam pkgs.rebar3 ]; 32 + }; 33 + } 34 + ); 35 + }