mmc-utils: unstable-2024-03-07 -> 1.0 (#421253)

authored by Franz Pletz and committed by GitHub a1c885a0 a7388aef

+15 -19
+15 -19
pkgs/by-name/mm/mmc-utils/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchzip, 5 - unstableGitUpdater, 4 + fetchgit, 5 + gitUpdater, 6 + sparse, 6 7 }: 7 8 8 - stdenv.mkDerivation { 9 + stdenv.mkDerivation (finalAttrs: { 9 10 pname = "mmc-utils"; 10 - version = "unstable-2024-03-07"; 11 + version = "1.0"; 11 12 12 - src = fetchzip rec { 13 - url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${passthru.rev}.tar.gz"; 14 - passthru.rev = "e1281d4de9166b7254ba30bb58f9191fc2c9e7fb"; 15 - sha256 = "/lkcZ/ArdBAStV9usavrbfjULXenqb+h2rbDJzxZjJk="; 13 + src = fetchgit { 14 + url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-iWLA1psNPUBCPOP393/xnYJ6BEuOcPCEYgymqE06F3Q="; 16 17 }; 17 18 19 + nativeBuildInputs = [ sparse ]; 20 + 18 21 makeFlags = [ 19 22 "CC=${stdenv.cc.targetPrefix}cc" 20 23 "prefix=$(out)" 24 + "mandir=$(out)/share/man" 21 25 ]; 22 26 23 - # causes redefinition of _FORTIFY_SOURCE 24 - hardeningDisable = [ "fortify3" ]; 25 - 26 - postInstall = '' 27 - mkdir -p $out/share/man/man1 28 - cp man/mmc.1 $out/share/man/man1/ 29 - ''; 30 - 31 27 enableParallelBuilding = true; 32 28 33 - passthru.updateScript = unstableGitUpdater { 34 - url = "https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"; 29 + passthru.updateScript = gitUpdater { 30 + rev-prefix = "v"; 35 31 }; 36 32 37 33 meta = with lib; { ··· 42 38 maintainers = [ maintainers.dezgeg ]; 43 39 platforms = platforms.linux; 44 40 }; 45 - } 41 + })