nixpkgs/pkgs/os-specific/linux/exfat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, fetchpatch, kernel }:
2017-02-03 18:44:59 +00:00
stdenv.mkDerivation rec {
name = "exfat-nofuse-${version}-${kernel.version}";
version = "2020-04-15";
2017-02-03 18:44:59 +00:00
src = fetchFromGitHub {
owner = "barrybingo";
2017-02-03 18:44:59 +00:00
repo = "exfat-nofuse";
rev = "297a5739cd4a942a1d814d05a9cd9b542e7b8fc8";
sha256 = "14jahy7n6pr482fjfrlf9ck3f2rkr5ds0n5r85xdfsla37ria26d";
2017-02-03 18:44:59 +00:00
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
2017-02-03 18:44:59 +00:00
makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"ARCH=${stdenv.hostPlatform.linuxArch}"
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
2020-06-18 09:27:27 +00:00
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
2017-02-03 18:44:59 +00:00
];
installPhase = ''
install -m644 -b -D exfat.ko $out/lib/modules/${kernel.modDirVersion}/kernel/fs/exfat/exfat.ko
'';
meta = {
description = "exfat kernel module";
inherit (src.meta) homepage;
2017-02-28 15:28:23 +00:00
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ makefu ];
platforms = lib.platforms.linux;
broken = true;
2017-02-03 18:44:59 +00:00
};
}