2017-12-28 05:49:35 +00:00
|
|
|
{ stdenv, pkgconfig, glib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "chrootenv";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
cc ${./chrootenv.c} $(pkg-config --cflags --libs glib-2.0) -o $out
|
2018-11-04 03:43:22 +00:00
|
|
|
${stdenv.cc.bintools.bintools}/bin/strip $out
|
2017-12-28 05:49:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Setup mount/user namespace for FHS emulation";
|
|
|
|
license = licenses.free;
|
|
|
|
maintainers = with maintainers; [ yegortimoshenko ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|