at 24.05-pre 36 lines 1.1 kB view raw
1{ lib, stdenv, fetchzip, unstableGitUpdater }: 2 3stdenv.mkDerivation { 4 pname = "mmc-utils"; 5 version = "unstable-2023-10-10"; 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 = "b5ca140312d279ad2f22068fd72a6230eea13436"; 10 sha256 = "QU4r8eajrrhT6u6WHEf1xtB1iyecBeHxu4vS+QcwAgM="; 11 }; 12 13 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ]; 14 15 # causes redefinition of _FORTIFY_SOURCE 16 hardeningDisable = [ "fortify3" ]; 17 18 postInstall = '' 19 mkdir -p $out/share/man/man1 20 cp man/mmc.1 $out/share/man/man1/ 21 ''; 22 23 enableParallelBuilding = true; 24 25 passthru.updateScript = unstableGitUpdater { 26 url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"; 27 }; 28 29 meta = with lib; { 30 description = "Configure MMC storage devices from userspace"; 31 homepage = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/"; 32 license = licenses.gpl2Only; 33 maintainers = [ maintainers.dezgeg ]; 34 platforms = platforms.linux; 35 }; 36}