2022-06-09 11:17:59 +00:00
|
|
|
{ lib, stdenv, fetchzip, unstableGitUpdater }:
|
2016-01-19 22:54:38 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mmc-utils";
|
2023-04-17 17:35:30 +00:00
|
|
|
version = "unstable-2023-04-17";
|
2016-01-19 22:54:38 +00:00
|
|
|
|
2022-06-09 11:17:59 +00:00
|
|
|
src = fetchzip rec {
|
|
|
|
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
|
2023-04-17 17:35:30 +00:00
|
|
|
passthru.rev = "145c74ab6f2e13a9a8ccdbbf1758afedb8a3965c";
|
|
|
|
sha256 = "cYLIO83uZHDe1COKtSN0SyFOoC3qrqMP0RNsOO9cQ70=";
|
2016-01-19 22:54:38 +00:00
|
|
|
};
|
|
|
|
|
2022-06-09 11:19:44 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
|
2017-12-07 14:55:48 +00:00
|
|
|
|
2022-06-09 11:19:44 +00:00
|
|
|
postInstall = ''
|
2016-01-19 22:54:38 +00:00
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp man/mmc.1 $out/share/man/man1/
|
|
|
|
'';
|
|
|
|
|
2022-06-09 11:20:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-06-09 11:17:59 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-19 22:54:38 +00:00
|
|
|
description = "Configure MMC storage devices from userspace";
|
2022-06-09 10:19:26 +00:00
|
|
|
homepage = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/";
|
2022-06-09 11:20:16 +00:00
|
|
|
license = licenses.gpl2Only;
|
2016-01-19 22:54:38 +00:00
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|