{ lib, callPackage, stdenv, bun2nix, }: let sources = callPackage ../../../../_sources/generated.nix {}; in stdenv.mkDerivation { pname = "oh-my-pi"; version = "unstable-${sources.oh-my-pi.version}"; inherit (sources.oh-my-pi) src; nativeBuildInputs = [ bun2nix.hook ]; bunDeps = bun2nix.fetchBunDeps { bunNix = ./bun.nix; }; preBuild = '' ''; installPhase = '' runHook preInstall runHook postInstall ''; meta = with lib; { description = "UEFI boot driver to start co-processors on Qualcomm platforms late during the boot process"; homepage = "https://github.com/can1357/oh-my-pi"; license = licenses.mit; platforms = ["aarch64-linux" "x86_64-linux"]; mainProgram = "omp"; }; }