blob: 23012ad74ae0bd79b935f23c83d906e5f6cb3ea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
stdenv,
fetchFromGitHub,
flock,
gitUpdater,
bashInteractive,
lib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "enroot";
version = "4.2.1";
src = fetchFromGitHub {
owner = "NVIDIA";
repo = "enroot";
tag = "v${finalAttrs.version}";
hash = "sha256-TMfzXmKrhdiUan3kemivlEQ6KqUNGOHtCZVZQP1AcB8=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'git submodule update' 'echo git submodule update'
'';
makeTarget = "install";
makeFlags = [
"DESTDIR=${placeholder "out"}"
"prefix=/"
];
nativeBuildInputs = [
flock
];
buildInputs = [
bashInteractive
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
description = "Simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes";
license = lib.licenses.asl20;
homepage = "https://github.com/NVIDIA/enroot";
changelog = "https://github.com/NVIDIA/enroot/releases/tag/v${finalAttrs.version}";
platforms = lib.platforms.linux;
maintainers = [ ];
mainProgram = "enroot";
};
})
|