{ lib, stdenv, fetchzip, unstableGitUpdater }: stdenv.mkDerivation { pname = "mmc-utils"; version = "unstable-2022-11-09"; src = fetchzip rec { url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz"; passthru.rev = "c62dd8e415b12cc7f9a362db23cd384caf77ff03"; sha256 = "zTrMounPmos+9Reyfa3xS5/5/tyMs0WapSmzqdXUBNk="; }; makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ]; postInstall = '' mkdir -p $out/share/man/man1 cp man/mmc.1 $out/share/man/man1/ ''; enableParallelBuilding = true; passthru.updateScript = unstableGitUpdater { url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"; }; meta = with lib; { description = "Configure MMC storage devices from userspace"; homepage = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/"; license = licenses.gpl2Only; maintainers = [ maintainers.dezgeg ]; platforms = platforms.linux; }; }