mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
Add nix-on-droid script
This commit is contained in:
parent
b7ad1d5d08
commit
5cc656fffc
3 changed files with 133 additions and 37 deletions
40
default.nix
40
default.nix
|
|
@ -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 { };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue