# Pastebin MFJl81KR commit = (removeSuffix "\n" (readFile ( stdenv.mkDerivation rec { name = "commit"; src = sourceByRegex ../. ["\.git.*"]; passAsFile = ["buildCommand"]; buildInputs = [git]; buildCommand = '' cd $src git show-ref -s HEAD > $out ''; })));