Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
879 B
Nix
42 lines
879 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchgit,
|
|
gitUpdater,
|
|
sparse,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "mmc-utils";
|
|
version = "1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-iWLA1psNPUBCPOP393/xnYJ6BEuOcPCEYgymqE06F3Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ sparse ];
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"prefix=$(out)"
|
|
"mandir=$(out)/share/man"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Configure MMC storage devices from userspace";
|
|
mainProgram = "mmc";
|
|
homepage = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.dezgeg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|