d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ lib, stdenv, fetchzip, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mmc-utils";
|
|
version = "unstable-2023-08-07";
|
|
|
|
src = fetchzip rec {
|
|
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
|
|
passthru.rev = "613495ecaca97a19fa7f8f3ea23306472b36453c";
|
|
sha256 = "zOjm/YDxqU6bu6GMyQTuzuZbrCfaU4FBodRWLb8GTdE=";
|
|
};
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
|
|
|
|
# causes redefinition of _FORTIFY_SOURCE
|
|
hardeningDisable = [ "fortify3" ];
|
|
|
|
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;
|
|
};
|
|
}
|