Add nix-on-droid script

This commit is contained in:
Tobias Happ 2019-11-24 00:37:28 +01:00 committed by Alexander Sosedkin
parent b7ad1d5d08
commit 5cc656fffc
3 changed files with 133 additions and 37 deletions

View file

@ -1,39 +1,5 @@
# Licensed under GNU Lesser General Public License v3 or later, see COPYING.
# Copyright (c) 2019 Alexander Sosedkin and other contributors, see AUTHORS.
{ }:
let
nixpkgs = import <nixpkgs> { };
pkgs = import ./src {
arch = if nixpkgs.stdenv.hostPlatform.isArm then "aarch64" else "i686";
initialBuild = false;
};
in
{ pkgs ? import <nixpkgs> { } }:
{
# inherit (pkgs) proot-termux;
basic-environment = nixpkgs.buildEnv {
name = "basic-environment";
paths = [
nixpkgs.bashInteractive
nixpkgs.cacert
nixpkgs.coreutils
nixpkgs.less # since nix tools really want a pager available, #27
nixpkgs.nix
# pkgs.proot-termux
pkgs.files.etc-group
pkgs.files.etc-passwd
pkgs.files.hm-install
pkgs.files.home-nix-default
pkgs.files.login
pkgs.files.login-inner
pkgs.files.nix-conf
pkgs.files.nix-on-droid-linker
pkgs.files.resolv-conf
];
};
} // pkgs.files
nix-on-droid = pkgs.callPackage ./nix-on-droid { };
}