Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ stdenv, lib, fetchurl, kernel, kernelModuleMakeFlags, nixosTests, flex, coccinelle, python3,}:
stdenv.mkDerivation (finalAttrs: { pname = "drbd"; version = "9.2.12";
src = fetchurl { url = "https://pkg.linbit.com//downloads/drbd/9/drbd-${finalAttrs.version}.tar.gz"; hash = "sha256-amdcyPTynGTaaZh558Q3KnGuGyyLJKnsY+NBCO26Jq0="; };
hardeningDisable = [ "pic" ];
nativeBuildInputs = [ kernel.moduleBuildDependencies flex coccinelle python3 ];
enableParallelBuilding = true;
makeFlags = kernelModuleMakeFlags ++ [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" "KVER=${kernel.version}" "INSTALL_MOD_PATH=${placeholder "out"}" "M=$(sourceRoot)" "SPAAS=false" ];
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
postPatch = '' patchShebangs . substituteInPlace Makefile --replace 'SHELL=/bin/bash' 'SHELL=${builtins.getEnv "SHELL"}' '';
passthru.tests.drbd-driver = nixosTests.drbd-driver;
meta = with lib; { homepage = "https://github.com/LINBIT/drbd"; description = "LINBIT DRBD kernel module"; license = licenses.gpl2Plus; platforms = platforms.linux; maintainers = with maintainers; [ birkb ]; longDescription = '' DRBD is a software-based, shared-nothing, replicated storage solution mirroring the content of block devices (hard disks, partitions, logical volumes, and so on) between hosts. ''; };})