This repository has no description
0

Configure Feed

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

add ci (#2)

+57 -16
+32
.github/workflows/ci.yml
··· 1 + on: 2 + - push 3 + 4 + jobs: 5 + list: 6 + runs-on: ubuntu-24.04 7 + outputs: 8 + matrix: ${{ steps.list.outputs.matrix }} 9 + steps: 10 + - uses: actions/checkout@v4 11 + - uses: DeterminateSystems/nix-installer-action@main 12 + - uses: DeterminateSystems/magic-nix-cache-action@main 13 + - name: List packages 14 + id: list 15 + run: | 16 + matrix="$(nix eval .#checks.x86_64-linux --json --apply builtins.attrNames)" 17 + echo "matrix=$matrix" >> "$GITHUB_OUTPUT" 18 + 19 + build: 20 + needs: list 21 + runs-on: ubuntu-24.04 22 + strategy: 23 + fail-fast: false 24 + matrix: 25 + pkg: ${{ fromJson(needs.list.outputs.matrix) }} 26 + name: Build ${{ matrix.pkg }} 27 + steps: 28 + - uses: actions/checkout@v4 29 + - uses: DeterminateSystems/nix-installer-action@main 30 + - uses: DeterminateSystems/magic-nix-cache-action@main 31 + - name: Build 32 + run: nix build '.#checks.x86_64-linux.${{ matrix.pkg }}^*' --print-build-logs
+1
.gitignore
··· 1 1 .* 2 2 !.gitignore 3 + !.github 3 4 result*
+3 -13
flake.lock
··· 50 50 }, 51 51 "flake-parts": { 52 52 "inputs": { 53 - "nixpkgs-lib": "nixpkgs-lib" 53 + "nixpkgs-lib": [ 54 + "nixpkgs" 55 + ] 54 56 }, 55 57 "locked": { 56 58 "lastModified": 1736143030, ··· 192 194 "ref": "nixos-24.11", 193 195 "repo": "nixpkgs", 194 196 "type": "github" 195 - } 196 - }, 197 - "nixpkgs-lib": { 198 - "locked": { 199 - "lastModified": 1735774519, 200 - "narHash": "sha256-CewEm1o2eVAnoqb6Ml+Qi9Gg/EfNAxbRx1lANGVyoLI=", 201 - "type": "tarball", 202 - "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" 203 - }, 204 - "original": { 205 - "type": "tarball", 206 - "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" 207 197 } 208 198 }, 209 199 "root": {
+20 -3
flake.nix
··· 3 3 4 4 inputs = { 5 5 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; 6 - flake-parts.url = "github:hercules-ci/flake-parts"; 6 + flake-parts = { 7 + url = "github:hercules-ci/flake-parts"; 8 + inputs.nixpkgs-lib.follows = "nixpkgs"; 9 + }; 7 10 8 11 # repo meta: 9 12 # keep-sorted start block=yes ··· 59 62 ]; 60 63 61 64 perSystem = 62 - { pkgs, system, ... }: 65 + { 66 + pkgs, 67 + system, 68 + config, 69 + lib, 70 + ... 71 + }: 63 72 { 64 - packages = import ./all-packages.nix { 73 + # For better or for worse, nixpkgs has established the pattern of 74 + # a legacyPackages attribute that does not contain legacy packages at all, 75 + # but rather an attribute set that's just not the shape of the typical packages attribute. 76 + # In our case, we have a handful of non-package attributes that we still want to expose under the pkgs object. 77 + legacyPackages = import ./all-packages.nix { 65 78 inherit (inputs.nixpkgs) lib; 66 79 inherit inputs; 67 80 currentSystem = system; 68 81 hostpkgs = import ./host-packages.nix { inherit pkgs; }; 69 82 }; 83 + 84 + # and then expose a filtered version of that attribute set with just the actual packages. 85 + packages = lib.filterAttrs (_name: value: value ? drvPath) config.legacyPackages; 86 + checks = config.packages; 70 87 }; 71 88 }; 72 89 }
+1
treefmt.nix
··· 2 2 projectRootFile = "flake.nix"; 3 3 4 4 # keep-sorted start 5 + programs.actionlint.enable = true; 5 6 programs.keep-sorted.enable = true; 6 7 programs.nixfmt.enable = true; 7 8 # keep-sorted end