nixpkgs/pkgs/os-specific/linux/mmc-utils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
989 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, unstableGitUpdater }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "mmc-utils";
version = "unstable-2023-04-17";
src = fetchzip rec {
url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz";
passthru.rev = "145c74ab6f2e13a9a8ccdbbf1758afedb8a3965c";
sha256 = "cYLIO83uZHDe1COKtSN0SyFOoC3qrqMP0RNsOO9cQ70=";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "prefix=$(out)" ];
2017-12-07 14:55:48 +00:00
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/";
2022-06-09 11:20:16 +00:00
license = licenses.gpl2Only;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}