This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

initial commit

author
Thomas Stokes
date (Jan 11, 2025, 8:41 PM +0800) commit 6e232df4
+284
+3
.gitignore
··· 1 + .* 2 + !.gitignore 3 + result*/
+174
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-compat": { 4 + "flake": false, 5 + "locked": { 6 + "lastModified": 1696426674, 7 + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 8 + "owner": "edolstra", 9 + "repo": "flake-compat", 10 + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 11 + "type": "github" 12 + }, 13 + "original": { 14 + "owner": "edolstra", 15 + "repo": "flake-compat", 16 + "type": "github" 17 + } 18 + }, 19 + "flake-compat_2": { 20 + "flake": false, 21 + "locked": { 22 + "lastModified": 1696426674, 23 + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 24 + "owner": "edolstra", 25 + "repo": "flake-compat", 26 + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 27 + "type": "github" 28 + }, 29 + "original": { 30 + "owner": "edolstra", 31 + "repo": "flake-compat", 32 + "type": "github" 33 + } 34 + }, 35 + "flake-parts": { 36 + "inputs": { 37 + "nixpkgs-lib": "nixpkgs-lib" 38 + }, 39 + "locked": { 40 + "lastModified": 1736143030, 41 + "narHash": "sha256-+hu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU=", 42 + "owner": "hercules-ci", 43 + "repo": "flake-parts", 44 + "rev": "b905f6fc23a9051a6e1b741e1438dbfc0634c6de", 45 + "type": "github" 46 + }, 47 + "original": { 48 + "owner": "hercules-ci", 49 + "repo": "flake-parts", 50 + "type": "github" 51 + } 52 + }, 53 + "git-hooks": { 54 + "inputs": { 55 + "flake-compat": "flake-compat", 56 + "gitignore": "gitignore", 57 + "nixpkgs": [ 58 + "nixpkgs" 59 + ] 60 + }, 61 + "locked": { 62 + "lastModified": 1735882644, 63 + "narHash": "sha256-3FZAG+pGt3OElQjesCAWeMkQ7C/nB1oTHLRQ8ceP110=", 64 + "owner": "cachix", 65 + "repo": "git-hooks.nix", 66 + "rev": "a5a961387e75ae44cc20f0a57ae463da5e959656", 67 + "type": "github" 68 + }, 69 + "original": { 70 + "owner": "cachix", 71 + "repo": "git-hooks.nix", 72 + "type": "github" 73 + } 74 + }, 75 + "gitignore": { 76 + "inputs": { 77 + "nixpkgs": [ 78 + "git-hooks", 79 + "nixpkgs" 80 + ] 81 + }, 82 + "locked": { 83 + "lastModified": 1709087332, 84 + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", 85 + "owner": "hercules-ci", 86 + "repo": "gitignore.nix", 87 + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", 88 + "type": "github" 89 + }, 90 + "original": { 91 + "owner": "hercules-ci", 92 + "repo": "gitignore.nix", 93 + "type": "github" 94 + } 95 + }, 96 + "make-shell": { 97 + "inputs": { 98 + "flake-compat": "flake-compat_2" 99 + }, 100 + "locked": { 101 + "lastModified": 1733933815, 102 + "narHash": "sha256-9JjM7eT66W4NJAXpGUsdyAFXhBxFWR2Z9LZwUa7Hli0=", 103 + "owner": "nicknovitski", 104 + "repo": "make-shell", 105 + "rev": "ffeceae9956df03571ea8e96ef77c2924f13a63c", 106 + "type": "github" 107 + }, 108 + "original": { 109 + "owner": "nicknovitski", 110 + "repo": "make-shell", 111 + "type": "github" 112 + } 113 + }, 114 + "nixpkgs": { 115 + "locked": { 116 + "lastModified": 1735412871, 117 + "narHash": "sha256-Qoz0ow6jDGUIBHxduc7Y1cjYFS71tvEGJV5Src/mj98=", 118 + "owner": "nixos", 119 + "repo": "nixpkgs", 120 + "rev": "9f94733f93e4fe6e82f516efae007096e4ab5a21", 121 + "type": "github" 122 + }, 123 + "original": { 124 + "owner": "nixos", 125 + "ref": "nixos-24.11", 126 + "repo": "nixpkgs", 127 + "type": "github" 128 + } 129 + }, 130 + "nixpkgs-lib": { 131 + "locked": { 132 + "lastModified": 1735774519, 133 + "narHash": "sha256-CewEm1o2eVAnoqb6Ml+Qi9Gg/EfNAxbRx1lANGVyoLI=", 134 + "type": "tarball", 135 + "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" 136 + }, 137 + "original": { 138 + "type": "tarball", 139 + "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" 140 + } 141 + }, 142 + "root": { 143 + "inputs": { 144 + "flake-parts": "flake-parts", 145 + "git-hooks": "git-hooks", 146 + "make-shell": "make-shell", 147 + "nixpkgs": "nixpkgs", 148 + "treefmt-nix": "treefmt-nix" 149 + } 150 + }, 151 + "treefmt-nix": { 152 + "inputs": { 153 + "nixpkgs": [ 154 + "nixpkgs" 155 + ] 156 + }, 157 + "locked": { 158 + "lastModified": 1736154270, 159 + "narHash": "sha256-p2r8xhQZ3TYIEKBoiEhllKWQqWNJNoT9v64Vmg4q8Zw=", 160 + "owner": "numtide", 161 + "repo": "treefmt-nix", 162 + "rev": "13c913f5deb3a5c08bb810efd89dc8cb24dd968b", 163 + "type": "github" 164 + }, 165 + "original": { 166 + "owner": "numtide", 167 + "repo": "treefmt-nix", 168 + "type": "github" 169 + } 170 + } 171 + }, 172 + "root": "root", 173 + "version": 7 174 + }
+41
flake.nix
··· 1 + { 2 + description = "Packages for Linux on WebAssembly"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; 6 + flake-parts.url = "github:hercules-ci/flake-parts"; 7 + 8 + # repo meta: 9 + # keep-sorted start block=yes 10 + git-hooks = { 11 + url = "github:cachix/git-hooks.nix"; 12 + inputs.nixpkgs.follows = "nixpkgs"; 13 + }; 14 + make-shell = { 15 + url = "github:nicknovitski/make-shell"; 16 + }; 17 + treefmt-nix = { 18 + url = "github:numtide/treefmt-nix"; 19 + inputs.nixpkgs.follows = "nixpkgs"; 20 + }; 21 + # keep-sorted end 22 + }; 23 + outputs = 24 + inputs: 25 + inputs.flake-parts.lib.mkFlake { inherit inputs; } { 26 + imports = [ 27 + # keep-sorted start 28 + ./flake/format.nix 29 + ./flake/git-hooks.nix 30 + ./flake/shell.nix 31 + # keep-sorted end 32 + ]; 33 + 34 + systems = [ 35 + "x86_64-linux" 36 + "aarch64-linux" 37 + "x86_64-darwin" 38 + "aarch64-darwin" 39 + ]; 40 + }; 41 + }
+28
flake/format.nix
··· 1 + { inputs, ... }: 2 + { 3 + imports = [ inputs.treefmt-nix.flakeModule ]; 4 + 5 + perSystem = 6 + { config, ... }: 7 + { 8 + treefmt = { 9 + projectRootFile = "flake.nix"; 10 + settings = { 11 + global.excludes = [ ]; 12 + }; 13 + programs = { 14 + # keep-sorted start 15 + actionlint.enable = true; 16 + deadnix.enable = true; 17 + keep-sorted.enable = true; 18 + nixfmt.enable = true; 19 + shellcheck.enable = true; 20 + shfmt.enable = true; 21 + statix.enable = true; 22 + # keep-sorted end 23 + }; 24 + }; 25 + 26 + make-shells.default.packages = [ config.treefmt.build.wrapper ]; 27 + }; 28 + }
+15
flake/git-hooks.nix
··· 1 + { inputs, ... }: 2 + { 3 + imports = [ inputs.git-hooks.flakeModule ]; 4 + 5 + perSystem = 6 + { config, ... }: 7 + { 8 + pre-commit.settings.hooks.treefmt = { 9 + enable = true; 10 + packageOverrides.treefmt = config.treefmt.build.wrapper; 11 + }; 12 + 13 + make-shells.default.shellHook = config.pre-commit.installationScript; 14 + }; 15 + }
+15
flake/shell.nix
··· 1 + { inputs, ... }: 2 + { 3 + imports = [ inputs.make-shell.flakeModules.default ]; 4 + 5 + # perSystem = 6 + # { pkgs, ... }: 7 + # { 8 + # make-shells.default = { 9 + # packages = with pkgs; [ 10 + # # keep-sorted start 11 + # # keep-sorted end 12 + # ]; 13 + # }; 14 + # }; 15 + }
+8
treefmt.nix
··· 1 + { 2 + projectRootFile = "flake.nix"; 3 + 4 + # keep-sorted start 5 + programs.keep-sorted.enable = true; 6 + programs.nixfmt.enable = true; 7 + # keep-sorted end 8 + }