mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
34 lines
989 B
Nix
34 lines
989 B
Nix
{ lib, stdenv, fetchzip, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mmc-utils";
|
|
version = "unstable-2023-02-09";
|
|
|
|
src = fetchzip rec {
|
|
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
|
|
passthru.rev = "d4c2910981ff99b983734426dfa99632fb81ac6b";
|
|
sha256 = "926iFpZ6CqDw4n6YSrrnCm3Mu9F3wb3riqYH8mHZ2b4=";
|
|
};
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
|
|
|
|
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;
|
|
};
|
|
}
|