depot/third_party/nixpkgs/pkgs/os-specific/linux/mmc-utils/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

36 lines
1 KiB
Nix

{ lib, stdenv, fetchzip, unstableGitUpdater }:
stdenv.mkDerivation {
pname = "mmc-utils";
version = "unstable-2023-10-10";
src = fetchzip rec {
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
passthru.rev = "b5ca140312d279ad2f22068fd72a6230eea13436";
sha256 = "QU4r8eajrrhT6u6WHEf1xtB1iyecBeHxu4vS+QcwAgM=";
};
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;
};
}