summary refs log tree commit diff
path: root/pkgs/build-support/build-fhs-userenv/chrootenv/default.nix
blob: 375c30e1e463bebcebfaade155c9f92ae8164038 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, pkgconfig, glib }:

stdenv.mkDerivation {
  name = "chrootenv";

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ glib ];

  buildCommand = ''
    cc ${./chrootenv.c} $(pkg-config --cflags --libs glib-2.0) -o $out
  '';

  meta = with stdenv.lib; {
    description = "Setup mount/user namespace for FHS emulation";
    license = licenses.free;
    maintainers = with maintainers; [ yegortimoshenko ];
    platforms = platforms.linux;
  };
}