[mirror] Command-line application for uploading a site to a git-pages server

Add Nix flake and Renovate configuration.

+1
.gitignore
··· 1 + /result
+77
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-utils": { 4 + "inputs": { 5 + "systems": "systems" 6 + }, 7 + "locked": { 8 + "lastModified": 1731533236, 9 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 10 + "owner": "numtide", 11 + "repo": "flake-utils", 12 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "numtide", 17 + "repo": "flake-utils", 18 + "type": "github" 19 + } 20 + }, 21 + "nix-filter": { 22 + "locked": { 23 + "lastModified": 1757882181, 24 + "narHash": "sha256-+cCxYIh2UNalTz364p+QYmWHs0P+6wDhiWR4jDIKQIU=", 25 + "owner": "numtide", 26 + "repo": "nix-filter", 27 + "rev": "59c44d1909c72441144b93cf0f054be7fe764de5", 28 + "type": "github" 29 + }, 30 + "original": { 31 + "owner": "numtide", 32 + "repo": "nix-filter", 33 + "type": "github" 34 + } 35 + }, 36 + "nixpkgs": { 37 + "locked": { 38 + "lastModified": 1763191728, 39 + "narHash": "sha256-esRhOS0APE6k40Hs/jjReXg+rx+J5LkWw7cuWFKlwYA=", 40 + "owner": "NixOS", 41 + "repo": "nixpkgs", 42 + "rev": "1d4c88323ac36805d09657d13a5273aea1b34f0c", 43 + "type": "github" 44 + }, 45 + "original": { 46 + "owner": "NixOS", 47 + "ref": "nixpkgs-unstable", 48 + "repo": "nixpkgs", 49 + "type": "github" 50 + } 51 + }, 52 + "root": { 53 + "inputs": { 54 + "flake-utils": "flake-utils", 55 + "nix-filter": "nix-filter", 56 + "nixpkgs": "nixpkgs" 57 + } 58 + }, 59 + "systems": { 60 + "locked": { 61 + "lastModified": 1681028828, 62 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 63 + "owner": "nix-systems", 64 + "repo": "default", 65 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 66 + "type": "github" 67 + }, 68 + "original": { 69 + "owner": "nix-systems", 70 + "repo": "default", 71 + "type": "github" 72 + } 73 + } 74 + }, 75 + "root": "root", 76 + "version": 7 77 + }
+62
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 4 + flake-utils.url = "github:numtide/flake-utils"; 5 + nix-filter.url = "github:numtide/nix-filter"; 6 + }; 7 + 8 + outputs = 9 + { 10 + self, 11 + nixpkgs, 12 + flake-utils, 13 + nix-filter, 14 + }: 15 + flake-utils.lib.eachDefaultSystem ( 16 + system: 17 + let 18 + pkgs = nixpkgs.legacyPackages.${system}; 19 + 20 + git-pages-cli = pkgs.buildGo125Module { 21 + pname = "git-pages-cli"; 22 + version = "0"; 23 + 24 + src = nix-filter { 25 + root = self; 26 + 27 + include = [ 28 + "go.mod" 29 + "go.sum" 30 + "main.go" 31 + ]; 32 + }; 33 + 34 + buildInputs = with pkgs; [ 35 + pkgsStatic.musl 36 + ]; 37 + 38 + ldflags = [ 39 + "-linkmode external" 40 + "-extldflags -static" 41 + "-s -w" 42 + ]; 43 + 44 + vendorHash = "sha256-4Xo48Dpqzq61molFjhgu7df45544tRfjr0iM5k4dBVo="; 45 + }; 46 + in 47 + { 48 + formatter = pkgs.nixfmt-tree; 49 + 50 + devShells.default = pkgs.mkShell { 51 + inputsFrom = [ 52 + git-pages-cli 53 + ]; 54 + }; 55 + 56 + packages = { 57 + inherit git-pages-cli; 58 + default = git-pages-cli; 59 + }; 60 + } 61 + ); 62 + }
+12
renovate.json
··· 1 + { 2 + "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 + "extends": [ 4 + "group:all" 5 + ], 6 + "abandonmentThreshold": null, 7 + "packageRules": [], 8 + "lockFileMaintenance": { 9 + "enabled": true, 10 + "automerge": false 11 + } 12 + }