@@ -1,19 +1,15 @@
1−{ stdenv, pkgconfig, glib }:
1+{ stdenv, meson, ninja, pkgconfig, glib }:
22
33stdenv.mkDerivation {
44 name = "chrootenv";
5+ src = ./.;
56
6− nativeBuildInputs = [ pkgconfig ];
7+ nativeBuildInputs = [ meson ninja pkgconfig ];
78 buildInputs = [ glib ];
89
9− buildCommand = ''
10− cc ${./chrootenv.c} $(pkg-config --cflags --libs glib-2.0) -o $out
11− ${stdenv.cc.bintools.bintools}/bin/strip $out
12− '';
13−
1410 meta = with stdenv.lib; {
1511 description = "Setup mount/user namespace for FHS emulation";
16− license = licenses.free;
12+ license = licenses.mit;
1713 maintainers = with maintainers; [ yegortimoshenko ];
1814 platforms = platforms.linux;
1915 };