shufflecake: 0.4.4 -> 0.5.1

This commit is contained in:
oluceps 2024-09-23 15:41:48 +08:00 committed by oluceps
parent 61194a6d4b
commit bf94a91994
No known key found for this signature in database

View File

@ -1,22 +1,35 @@
{ lib, kernel, stdenv, fetchFromGitea, libgcrypt, lvm2 }:
{
lib,
kernel,
stdenv,
fetchFromGitea,
libgcrypt,
lvm2,
}:
stdenv.mkDerivation (finalAttrs: {
name = "shufflecake";
version = "0.4.4";
version = "0.5.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "shufflecake";
repo = "shufflecake-c";
rev = "v${finalAttrs.version}";
hash = "sha256-zvGHM5kajJlROI8vg1yZQ5NvJvuGLV2iKvumdW8aglA=";
hash = "sha256-ULRx+WEz7uQ1C0JDaXORo6lmiwBAwD20j/XP92YE/K0=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
buildInputs = [ libgcrypt lvm2 ];
buildInputs = [
libgcrypt
lvm2
];
makeFlags = kernel.makeFlags ++ [
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
outputs = [ "out" "bin" ];
outputs = [
"out"
"bin"
];
installPhase = ''
install -Dm444 dm-sflc.ko $out/lib/modules/${kernel.modDirVersion}/drivers/md/dm-sflc.ko
@ -30,7 +43,6 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = with maintainers; [ oluceps ];
outputsToInstall = [ "bin" ];
platforms = platforms.linux;
broken = kernel.kernelOlder "6.1";
broken = kernel.kernelOlder "6.1" || kernel.meta.name == "linux-lqx-6.12.1";
};
})