summary refs log tree commit diff
path: root/pkgs/build-support/build-fhs-userenv/chrootenv/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-12-31 09:51:58 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-12-31 09:53:49 +0100
commit1fcd92ce923d33ab3d8c0b6c6d42473b135f114b (patch)
treec0f696c1c2d3ff82067d891ee25bb4f44af54880 /pkgs/build-support/build-fhs-userenv/chrootenv/default.nix
parent4d2b7638173afb4c0f0c12a43654bcff5c9500ab (diff)
parentab3a12ed7ee0de4d247a8017151a1bf01829f6f7 (diff)
downloadnixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.tar
nixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.tar.gz
nixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.tar.bz2
nixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.tar.lz
nixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.tar.xz
nixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.tar.zst
nixlib-1fcd92ce923d33ab3d8c0b6c6d42473b135f114b.zip
Merge branch 'master' into staging
A few thousand rebuilds from master, again.
Hydra: ?compare=1422362
Diffstat (limited to 'pkgs/build-support/build-fhs-userenv/chrootenv/default.nix')
-rw-r--r--pkgs/build-support/build-fhs-userenv/chrootenv/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/build-support/build-fhs-userenv/chrootenv/default.nix b/pkgs/build-support/build-fhs-userenv/chrootenv/default.nix
new file mode 100644
index 000000000000..375c30e1e463
--- /dev/null
+++ b/pkgs/build-support/build-fhs-userenv/chrootenv/default.nix
@@ -0,0 +1,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;
+  };
+}