{ stdenv, fetchFromGitHub, cmake, libraspberrypi, ... }: let rev = "af8d32246c23cb23e4030e6588668a14341f5ddc"; in stdenv.mkDerivation { pname = "rpi-fbcp"; version = "unstable-${rev}"; src = fetchFromGitHub { inherit rev; owner = "tasanakorn"; repo = "rpi-fbcp"; hash = "sha256-herbC+rh7A8VBjuQjnCI3v4J1zN+PcxjqZ3FyaSonoM="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ libraspberrypi ]; installPhase = '' runHook preInstall mkdir -p $out/bin cp ./fbcp $out/bin/fbcp runHook postInstall ''; }