#!/usr/bin/env bash # # Run a command with one or more nixpkgs packages on PATH, pinned to the # revision recorded in `nixpkgs-pin`, next to this script. # # bash with-nixpkgs.sh apksigner apksigner verify --print-certs app.apk # bash with-nixpkgs.sh "fdroidserver jdk21 apksigner" fdroid update # # A space-separated list of attributes puts all of them on PATH at once, via # multiple `nix shell` installables in one call -- `fdroid update` shells out # to `jarsigner`/`keytool` (JDK) and `apksigner` itself, so a single package # is not always enough. # # **Call it as `bash