1 { lib, stdenv, fetchzip, unstableGitUpdater }:
5 version = "unstable-2024-03-07";
8 url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
9 passthru.rev = "e1281d4de9166b7254ba30bb58f9191fc2c9e7fb";
10 sha256 = "/lkcZ/ArdBAStV9usavrbfjULXenqb+h2rbDJzxZjJk=";
13 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
15 # causes redefinition of _FORTIFY_SOURCE
16 hardeningDisable = [ "fortify3" ];
19 mkdir -p $out/share/man/man1
20 cp man/mmc.1 $out/share/man/man1/
23 enableParallelBuilding = true;
25 passthru.updateScript = unstableGitUpdater {
26 url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git";
30 description = "Configure MMC storage devices from userspace";
32 homepage = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/";
33 license = licenses.gpl2Only;
34 maintainers = [ maintainers.dezgeg ];
35 platforms = platforms.linux;