mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
77d0ed11f6
It's better to let this be handled by stdenv.
32 lines
951 B
Nix
32 lines
951 B
Nix
{ lib, stdenv, fetchzip, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mmc-utils";
|
|
version = "unstable-2022-04-26";
|
|
|
|
src = fetchzip rec {
|
|
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
|
|
passthru.rev = "b7e4d5a6ae9942d26a11de9b05ae7d52c0802802";
|
|
sha256 = "D2QgntRsa6Y39nCkXQupXFbJR++JfBpMeEZE0Gv0btc=";
|
|
};
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/man/man1
|
|
cp man/mmc.1 $out/share/man/man1/
|
|
'';
|
|
|
|
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.gpl2;
|
|
maintainers = [ maintainers.dezgeg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|