nsjail: fix path to new{u|g}idmap (#51523)
This commit is contained in:
parent
059c61d001
commit
b38dd07eaa
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoconf, bison, flex, libtool, pkgconfig, which
|
{ stdenv, fetchFromGitHub, autoconf, bison, flex, libtool, pkgconfig, which
|
||||||
, libnl, protobuf, protobufc }:
|
, libnl, protobuf, protobufc, shadow
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nsjail-${version}";
|
name = "nsjail-${version}";
|
||||||
@ -13,6 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0cgycj0cz74plmz4asxryqprg6mkzpmnxzqbfsp1wwackinxq5fq";
|
sha256 = "0cgycj0cz74plmz4asxryqprg6mkzpmnxzqbfsp1wwackinxq5fq";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace user.cc \
|
||||||
|
--replace "/usr/bin/newgidmap" "${shadow}/bin/newgidmap" \
|
||||||
|
--replace "/usr/bin/newuidmap" "${shadow}/bin/newuidmap"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf bison flex libtool pkgconfig which ];
|
nativeBuildInputs = [ autoconf bison flex libtool pkgconfig which ];
|
||||||
buildInputs = [ libnl protobuf protobufc ];
|
buildInputs = [ libnl protobuf protobufc ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user