at 23.05-pre 33 lines 989 B view raw
1{ lib, stdenv, fetchzip, unstableGitUpdater }: 2 3stdenv.mkDerivation { 4 pname = "mmc-utils"; 5 version = "unstable-2022-09-27"; 6 7 src = fetchzip rec { 8 url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz"; 9 passthru.rev = "dfc3b6ecda84d21418fb4408b39c5c71db4c6458"; 10 sha256 = "G4sBwRW8NOq7CGTADvXgMbcVInStSueGfGsb4ApVaSk="; 11 }; 12 13 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ]; 14 15 postInstall = '' 16 mkdir -p $out/share/man/man1 17 cp man/mmc.1 $out/share/man/man1/ 18 ''; 19 20 enableParallelBuilding = true; 21 22 passthru.updateScript = unstableGitUpdater { 23 url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"; 24 }; 25 26 meta = with lib; { 27 description = "Configure MMC storage devices from userspace"; 28 homepage = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/"; 29 license = licenses.gpl2Only; 30 maintainers = [ maintainers.dezgeg ]; 31 platforms = platforms.linux; 32 }; 33}