mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
apfsprogs: unstable-2023-11-30 -> 0-unstable-2024-09-27
Diff: 990163894d...f31d7c2d69
This adds `apfs-label`, a new utility, so add a small test for it.
This commit is contained in:
parent
4e3a93cb00
commit
7a12fe7b2f
@ -18,6 +18,10 @@
|
|||||||
with subtest("mkapfs works with the maximum label length"):
|
with subtest("mkapfs works with the maximum label length"):
|
||||||
machine.succeed("mkapfs -L '000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7' /dev/vdb")
|
machine.succeed("mkapfs -L '000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7' /dev/vdb")
|
||||||
|
|
||||||
|
with subtest("apfs-label works"):
|
||||||
|
machine.succeed("mkapfs -L 'myLabel' /dev/vdb")
|
||||||
|
machine.succeed("apfs-label /dev/vdb | grep -q myLabel")
|
||||||
|
|
||||||
with subtest("Enable case sensitivity and normalization sensitivity"):
|
with subtest("Enable case sensitivity and normalization sensitivity"):
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"mkapfs -s -z /dev/vdb",
|
"mkapfs -s -z /dev/vdb",
|
||||||
|
@ -6,20 +6,20 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "apfsprogs";
|
pname = "apfsprogs";
|
||||||
version = "unstable-2023-11-30";
|
version = "0-unstable-2024-09-27";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linux-apfs";
|
owner = "linux-apfs";
|
||||||
repo = "apfsprogs";
|
repo = "apfsprogs";
|
||||||
rev = "990163894d871f51ba102a75aed384a275c5991b";
|
rev = "f31d7c2d69d212ce381399d2bb1e91410f592484";
|
||||||
hash = "sha256-yCShZ+ALzSe/svErt9/i1JyyEvbIeABGPbpS4lVil0A=";
|
hash = "sha256-+c+wU52XKNOTxSpSrkrNWoGEYw6Zo4CGEOyKMvkXEa0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = let
|
postPatch = let
|
||||||
shortRev = builtins.substring 0 9 finalAttrs.src.rev;
|
shortRev = builtins.substring 0 9 finalAttrs.src.rev;
|
||||||
in ''
|
in ''
|
||||||
substituteInPlace \
|
substituteInPlace \
|
||||||
apfs-snap/Makefile apfsck/Makefile mkapfs/Makefile \
|
apfs-snap/Makefile apfsck/Makefile mkapfs/Makefile apfs-label/Makefile \
|
||||||
--replace-fail \
|
--replace-fail \
|
||||||
'$(shell git describe --always HEAD | tail -c 9)' \
|
'$(shell git describe --always HEAD | tail -c 9)' \
|
||||||
'${shortRev}'
|
'${shortRev}'
|
||||||
@ -30,6 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
make -C apfs-snap $makeFlags
|
make -C apfs-snap $makeFlags
|
||||||
make -C apfsck $makeFlags
|
make -C apfsck $makeFlags
|
||||||
make -C mkapfs $makeFlags
|
make -C mkapfs $makeFlags
|
||||||
|
make -C apfs-label $makeFlags
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -38,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
make -C apfs-snap install DESTDIR="$out" $installFlags
|
make -C apfs-snap install DESTDIR="$out" $installFlags
|
||||||
make -C apfsck install DESTDIR="$out" $installFlags
|
make -C apfsck install DESTDIR="$out" $installFlags
|
||||||
make -C mkapfs install DESTDIR="$out" $installFlags
|
make -C mkapfs install DESTDIR="$out" $installFlags
|
||||||
|
make -C apfs-label install DESTDIR="$out" $installFlags
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user