96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 1 | { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 2 | inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 3 | |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 4 | outputs = |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 5 | { self, nixpkgs }: |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 6 | let |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 7 | forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 8 | in |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 9 | { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 10 | packages = forAllSystems ( |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 11 | system: |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 12 | let |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 13 | pkgs = nixpkgs.legacyPackages.${system}; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 14 | in |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 15 | { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 16 | default = pkgs.rustPlatform.buildRustPackage { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 17 | pname = "macltok"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 18 | version = "0.1.0"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 19 | src = self; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 20 | cargoLock.lockFile = ./Cargo.lock; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 21 | preBuild = "export NIX_BUILD_CORES=2"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 22 | SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 23 | }; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 24 | } |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 25 | ); |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 26 | |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 27 | checks = forAllSystems (system: { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 28 | default = self.packages.${system}.default; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 29 | sqlite = nixpkgs.legacyPackages.${system}.rustPlatform.buildRustPackage { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 30 | pname = "macltok-sqlite-check"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 31 | version = "0.1.0"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 32 | src = self; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 33 | cargoLock.lockFile = ./Cargo.lock; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 34 | preBuild = "export NIX_BUILD_CORES=2"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 35 | buildFeatures = [ "sqlite" ]; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 36 | nativeBuildInputs = [ nixpkgs.legacyPackages.${system}.pkg-config ]; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 37 | buildInputs = [ nixpkgs.legacyPackages.${system}.sqlite ]; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 38 | SSL_CERT_FILE = "${nixpkgs.legacyPackages.${system}.cacert}/etc/ssl/certs/ca-bundle.crt"; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 39 | }; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 40 | }); |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 41 | |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 42 | devShells = forAllSystems ( |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 43 | system: |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 44 | let |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 45 | pkgs = nixpkgs.legacyPackages.${system}; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 46 | in |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 47 | { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 48 | default = pkgs.mkShell { |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 49 | packages = with pkgs; [ |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 50 | cargo |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 51 | clippy |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 52 | pkg-config |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 53 | rust-analyzer |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 54 | rustc |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 55 | rustfmt |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 56 | sqlite |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 57 | ]; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 58 | }; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 59 | } |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 60 | ); |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 61 | }; |
96fdf90aacd6 | atagen | 2026-09-08 08:24 UTC | 62 | } |