Something went wrong. Try again.
Getǣl — Read-only macOS home directory disk usage cartography & APFS telemetry service
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103{ description = "Getǣl — strictly read-only storage cartography & filesystem telemetry service";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; };
outputs = { self, nixpkgs }: let systems = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" "aarch64-linux" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f { inherit system; pkgs = nixpkgs.legacyPackages.${system}; }); in { packages = forAllSystems ({ pkgs, ... }: let getael-web = pkgs.buildNpmPackage { pname = "getael-web"; version = "0.1.0"; src = ./web; npmDepsHash = "sha256-PZlE5/Yd4K4pOC0nQw+DjxjvZtnDiQXiEgw/yxoEAoQ="; installPhase = '' runHook preInstall mkdir -p "$out" cp -r dist/* "$out/" runHook postInstall ''; };
getael = pkgs.rustPlatform.buildRustPackage { pname = "getael"; version = "0.1.0"; src = pkgs.lib.cleanSource ./.; cargoLock.lockFile = ./Cargo.lock;
GETAEL_SKIP_WEB_BUILD = "1";
nativeBuildInputs = [ pkgs.pkg-config ]; buildInputs = [ pkgs.sqlite ];
preBuild = '' mkdir -p web/dist cp -r ${getael-web}/* web/dist/ '';
preCheck = '' export HOME="$TMPDIR/home" mkdir -p "$HOME" '';
# Sandbox tests that require real host APFS/loopback sockets may not # have access inside Nix's isolated build sandbox. checkFlags = [ "--skip=mac_volume_and_snapshot_providers_read_real_host_without_sudo" "--skip=e2e_binary_scans_serves_all_endpoints_and_tracks_live_fsevents" ];
meta = with pkgs.lib; { description = "Strictly read-only storage cartography and telemetry service"; homepage = "https://tangled.org/zip.mu.social/getael"; license = licenses.mit; mainProgram = "getael"; platforms = systems; }; }; in { inherit getael getael-web; default = getael; });
apps = forAllSystems ({ system, ... }: { default = { type = "app"; program = "${self.packages.${system}.default}/bin/getael"; }; });
devShells = forAllSystems ({ pkgs, ... }: { default = pkgs.mkShell { packages = with pkgs; [ cargo rustc rustfmt clippy nodejs sqlite pkg-config ]; }; }); };}