-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linuxPackages.nullfs: init at 0.17 (#339896)
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3234,6 +3234,13 @@ | |
githubId = 24193; | ||
name = "Dan Callahan"; | ||
}; | ||
callumio = { | ||
email = "[email protected]"; | ||
github = "callumio"; | ||
githubId = 16057677; | ||
name = "Callum Leslie"; | ||
keys = [ { fingerprint = "BC82 4BB5 1656 D144 285E A0EC D382 C4AF EECE AA90"; } ]; | ||
}; | ||
calvertvl = { | ||
email = "[email protected]"; | ||
github = "calvertvl"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
stdenv, | ||
lib, | ||
fetchFromGitHub, | ||
kernel, | ||
}: | ||
stdenv.mkDerivation rec { | ||
pname = "nullfs"; | ||
version = "0.17"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "abbbi"; | ||
repo = "nullfsvfs"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-Hkplhem4Gb1xsYQtRSWub0m15Fiil3qJAO183ygP+WI="; | ||
}; | ||
|
||
hardeningDisable = [ "pic" ]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
nativeBuildInputs = kernel.moduleBuildDependencies; | ||
|
||
makeFlags = kernel.makeFlags ++ [ | ||
"KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" | ||
]; | ||
|
||
prePatch = '' | ||
substituteInPlace "Makefile" \ | ||
--replace-fail "/lib/modules/\$(shell uname -r)/build" "\$(KSRC)" | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/fs/nullfs/" | ||
install -p -m 644 nullfs.ko $out/lib/modules/${kernel.modDirVersion}/kernel/fs/nullfs/ | ||
runHook postInstall | ||
''; | ||
|
||
meta = with lib; { | ||
description = "A virtual black hole file system that behaves like /dev/null"; | ||
homepage = "https://github.com/abbbi/nullfsvfs"; | ||
license = licenses.gpl3; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ callumio ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters