What: - add linux outputs and source build for summarize; plugin flakes now follow current system - expand update-tools to handle per-system assets and summarize source/pnpm hash - include linux checks in garnix and docs updates Why: - enable linux users to consume supported tools and summarize via Nix Tests: - ubs --diff - nix flake check - nix flake check --all-systems - nix build .#summarize - ./result/bin/summarize --version
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, watchman }:
|
|
|
|
let
|
|
sources = {
|
|
"aarch64-darwin" = {
|
|
url = "https://github.com/steipete/poltergeist/releases/download/v2.1.1/poltergeist-macos-universal-v2.1.1.tar.gz";
|
|
hash = "sha256-plQQjbB0QV7UY7U3ZdhfAZsAY/5m0G1E1WEgMm+elk8=";
|
|
};
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "poltergeist";
|
|
version = "2.1.1";
|
|
|
|
src = fetchurl sources.${stdenv.hostPlatform.system};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
unpackPhase = ''
|
|
tar -xzf "$src"
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/bin"
|
|
cp poltergeist "$out/bin/poltergeist"
|
|
cp polter "$out/bin/polter"
|
|
chmod 0755 "$out/bin/poltergeist" "$out/bin/polter"
|
|
runHook postInstall
|
|
'';
|
|
|
|
propagatedBuildInputs = [ watchman ];
|
|
|
|
meta = with lib; {
|
|
description = "Universal file watcher with auto-rebuild for any language or build system";
|
|
homepage = "https://github.com/steipete/poltergeist";
|
|
license = licenses.mit;
|
|
platforms = builtins.attrNames sources;
|
|
mainProgram = "poltergeist";
|
|
};
|
|
}
|