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
44 lines
1019 B
Nix
44 lines
1019 B
Nix
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
let
|
|
sources = {
|
|
"aarch64-darwin" = {
|
|
url = "https://github.com/steipete/imsg/releases/download/v0.4.0/imsg-macos.zip";
|
|
hash = "sha256-0OXjM+6IGS1ZW/7Z7s5g417K0DABRZZtWtJ0WMM+QHs=";
|
|
};
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "imsg";
|
|
version = "0.4.0";
|
|
|
|
src = fetchurl sources.${stdenv.hostPlatform.system};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
unpackPhase = ''
|
|
unzip -q "$src"
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/bin"
|
|
cp imsg "$out/bin/imsg"
|
|
chmod 0755 "$out/bin/imsg"
|
|
if [ -f PhoneNumberKit_PhoneNumberKit.bundle ]; then
|
|
cp -R PhoneNumberKit_PhoneNumberKit.bundle "$out/bin/"
|
|
fi
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Send and read iMessage / SMS from the terminal";
|
|
homepage = "https://github.com/steipete/imsg";
|
|
license = licenses.mit;
|
|
platforms = builtins.attrNames sources;
|
|
mainProgram = "imsg";
|
|
};
|
|
}
|