From dc08e07e7c40f3fe6b704ed58fcc178a5a92602e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 9 Jun 2022 11:17:59 +0000 Subject: mmc-utils: 2021-05-11 -> unstable-2022-04-26 I did this with unstableGitUpdater, which should help this package stay up to date in future. --- pkgs/os-specific/linux/mmc-utils/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'pkgs/os-specific') diff --git a/pkgs/os-specific/linux/mmc-utils/default.nix b/pkgs/os-specific/linux/mmc-utils/default.nix index 24249f9111d..76927f79158 100644 --- a/pkgs/os-specific/linux/mmc-utils/default.nix +++ b/pkgs/os-specific/linux/mmc-utils/default.nix @@ -1,12 +1,13 @@ -{ lib, stdenv, fetchzip }: +{ lib, stdenv, fetchzip, unstableGitUpdater }: stdenv.mkDerivation { pname = "mmc-utils"; - version = "2021-05-11"; + version = "unstable-2022-04-26"; - src = fetchzip { - url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-43282e80e174cc73b09b81a4d17cb3a7b4dc5cfc.tar.gz"; - sha256 = "0l06ahmprqshh75pkdpagb8fgnp2bwn8q8hwp1yl3laww2ghm8i5"; + 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" ]; @@ -17,6 +18,10 @@ stdenv.mkDerivation { 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/"; -- cgit 1.4.1