git.iko.soy/typeable/nixpkgs
on master help sign in
habitat: add an option to run in an FHS chroot

`hab studio enter` as well as other `hab` commands that make use of the studio assume an FHS system when creating a chroot. See https://github.com/habitat-sh/habitat/issues/994

commitea15a54ef2a7e9391708f3d5e76d1378f2341bc3 authorrushmorem <rushmore@webenchanter.com> dateThu 7 Jul 2016, 15:41 (10 years ago) parent48cf70c
3 files changed+13−3
pkgs/applications/networking/cluster/habitat/chroot-env.nix+9 pkgs/applications/networking/cluster/habitat/default.nix+3−3 pkgs/top-level/all-packages.nix+1
pkgs/applications/networking/cluster/habitat/chroot-env.nixnew file+9
@@ -0,0 +1,9 @@
1+# TODO: Drop once https://github.com/habitat-sh/habitat/issues/994
2+# is resolved.
3+{ habitat, libsodium, libarchive, openssl, buildFHSUserEnv }:
4+
5+buildFHSUserEnv {
6+ name = "hab";
7+ targetPkgs = pkgs: [ habitat libsodium libarchive openssl ];
8+ runScript = "bash";
9+}
pkgs/applications/networking/cluster/habitat/default.nix+3−3
@@ -5,18 +5,18 @@ with rustPlatform;
55
66buildRustPackage rec {
77 name = "habitat-${version}";
8− version = "0.7.0";
8+ version = "0.8.0";
99
1010 src = fetchFromGitHub {
1111 owner = "habitat-sh";
1212 repo = "habitat";
1313 rev = version;
14− sha256 = "0pacxcc86w4zdakyd6qbz2rqx30rkv1j5aca1fqa1hf1jqg44vg0";
14+ sha256 = "1h9wv2v4hcv79jkkjf8j96lzxni9d51755zfflfr5s3ayaip7rzj";
1515 };
1616
1717 sourceRoot = "habitat-${version}-src/components/hab";
1818
19− depsSha256 = "0bm9f6w7ircji4d1c1fgysna93w0lf8ws7gfkqq80zx92x3lz5z5";
19+ depsSha256 = "1612jaw3zdrgrb56r755bb18l8szdmf1wi7p9lpv3d2gklqcb7l1";
2020
2121 buildInputs = [ libsodium libarchive openssl ];
2222
pkgs/top-level/all-packages.nix+1
@@ -1940,6 +1940,7 @@ in
19401940 haveged = callPackage ../tools/security/haveged { };
19411941
19421942 habitat = callPackage ../applications/networking/cluster/habitat { };
1943+ habitat-sh = callPackage ../applications/networking/cluster/habitat/chroot-env.nix { };
19431944
19441945 hardlink = callPackage ../tools/system/hardlink { };
19451946